mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 00:07:56 +01:00
Add option to allow iron golems to spawn in air
This commit is contained in:
parent
26067ca04b
commit
fd378a7262
@ -9,3 +9,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
super.doPush(entity);
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user