Add option to allow iron golems to spawn in air

This commit is contained in:
William Blake Galbreath 2019-04-13 16:50:58 -05:00
parent 26067ca04b
commit fd378a7262

View File

@ -9,3 +9,12 @@
}
super.doPush(entity);
@@ -319,7 +319,7 @@
BlockPos blockposition1 = blockposition.below();
BlockState iblockdata = world.getBlockState(blockposition1);
- if (!iblockdata.entityCanStandOn(world, blockposition1, this)) {
+ if (!iblockdata.entityCanStandOn(world, blockposition1, this) && !this.level().paperConfig().entities.spawning.ironGolemsCanSpawnInAir) { // Paper - Add option to allow iron golems to spawn in air
return false;
} else {
for (int i = 1; i < 3; ++i) {