aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0327-Add-option-to-allow-iron-golems-to-spawn-in-air.patch
diff options
context:
space:
mode:
authorRiley Park <[email protected]>2024-05-15 17:06:59 -0700
committerGitHub <[email protected]>2024-05-15 17:06:59 -0700
commitf17519338bc589c045e0b32bfc37e048b23544d5 (patch)
treee50182ec698b4a9de8f366f485ee089b1901bbd9 /patches/server/0327-Add-option-to-allow-iron-golems-to-spawn-in-air.patch
parent3fc93581bb876e8149b2ca423375a98f5ca12d27 (diff)
downloadPaper-f17519338bc589c045e0b32bfc37e048b23544d5.tar.gz
Paper-f17519338bc589c045e0b32bfc37e048b23544d5.zip
Expose server build information (#10729)
* Expose server build information * squash patches * final tweaks --------- Co-authored-by: Jake Potrebic <[email protected]> Co-authored-by: masmc05 <[email protected]>
Diffstat (limited to 'patches/server/0327-Add-option-to-allow-iron-golems-to-spawn-in-air.patch')
-rw-r--r--patches/server/0327-Add-option-to-allow-iron-golems-to-spawn-in-air.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/0327-Add-option-to-allow-iron-golems-to-spawn-in-air.patch b/patches/server/0327-Add-option-to-allow-iron-golems-to-spawn-in-air.patch
new file mode 100644
index 0000000000..e09ab64290
--- /dev/null
+++ b/patches/server/0327-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 3a51d3722ef8dba0e4b3ebcff0de8cede3bf3371..932fae98c551052cadba4c6fc6e575fc30a25d58 100644
+--- a/src/main/java/net/minecraft/world/entity/animal/IronGolem.java
++++ b/src/main/java/net/minecraft/world/entity/animal/IronGolem.java
+@@ -317,7 +317,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) {