Small fix
This commit is contained in:
parent
b429eb604a
commit
c48071a551
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ import net.minecraft.world.ServerWorldAccess;
|
|||
|
||||
@Mixin(HostileEntity.class)
|
||||
public class HostileEntityMixin {
|
||||
@Inject(method = "canSpawnInDark", at = @At(value = "RETURN"))
|
||||
@Inject(method = "canSpawnInDark", at = @At(value = "RETURN"), cancellable = true)
|
||||
private static void endermenCheck(EntityType<? extends HostileEntity> type, ServerWorldAccess serverWorldAccess, SpawnReason spawnReason, BlockPos pos, Random random, CallbackInfoReturnable<Boolean> info) {
|
||||
boolean canSpawn = info.getReturnValue();
|
||||
if (canSpawn && spawnReason == SpawnReason.NATURAL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue