diff options
Diffstat (limited to 'patches/unapplied/server/0317-Add-option-to-allow-iron-golems-to-spawn-in-air.patch')
-rw-r--r-- | patches/unapplied/server/0317-Add-option-to-allow-iron-golems-to-spawn-in-air.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/unapplied/server/0317-Add-option-to-allow-iron-golems-to-spawn-in-air.patch b/patches/unapplied/server/0317-Add-option-to-allow-iron-golems-to-spawn-in-air.patch new file mode 100644 index 0000000000..8991de1b70 --- /dev/null +++ b/patches/unapplied/server/0317-Add-option-to-allow-iron-golems-to-spawn-in-air.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: William Blake Galbreath <[email protected]> +Date: Sat, 13 Apr 2019 16:50:58 -0500 +Subject: [PATCH] Add option to allow iron golems to spawn in air + + +diff --git a/src/main/java/net/minecraft/world/entity/animal/IronGolem.java b/src/main/java/net/minecraft/world/entity/animal/IronGolem.java +index dac63f51fc23cc7f35ee299d1e04c96c210db52b..e07b79ef172095c1800c88342b3ac8dc7703aea2 100644 +--- a/src/main/java/net/minecraft/world/entity/animal/IronGolem.java ++++ b/src/main/java/net/minecraft/world/entity/animal/IronGolem.java +@@ -319,7 +319,7 @@ public class IronGolem extends AbstractGolem implements NeutralMob { + 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) { |