aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0109-Add-EntityZapEvent.patch
diff options
context:
space:
mode:
authorBillyGalbreath <[email protected]>2021-07-01 22:28:31 -0500
committerGitHub <[email protected]>2021-07-02 04:28:31 +0100
commit882039d03e0767a1a83eda67b08c6047c2f27904 (patch)
treefd77068e01f89b3ee09165804a7c57d8d3742f60 /patches/server/0109-Add-EntityZapEvent.patch
parentf18dc1e3c7c395e0caa0a047eb6aa49e1da8c18e (diff)
downloadPaper-882039d03e0767a1a83eda67b08c6047c2f27904.tar.gz
Paper-882039d03e0767a1a83eda67b08c6047c2f27904.zip
Honor spigot.yml setting log-villager-deaths (#6057)
cat note: giggity.
Diffstat (limited to 'patches/server/0109-Add-EntityZapEvent.patch')
-rw-r--r--patches/server/0109-Add-EntityZapEvent.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0109-Add-EntityZapEvent.patch b/patches/server/0109-Add-EntityZapEvent.patch
index 917f292244..e75a4aeafa 100644
--- a/patches/server/0109-Add-EntityZapEvent.patch
+++ b/patches/server/0109-Add-EntityZapEvent.patch
@@ -21,7 +21,7 @@ index d414b111386e18dec8992b510b93c19ece8d60dd..2c95b6eddfe46e5d2ad495bfc86ccc24
if (CraftEventFactory.callPigZapEvent(this, lightning, entitypigzombie).isCancelled()) {
return;
diff --git a/src/main/java/net/minecraft/world/entity/npc/Villager.java b/src/main/java/net/minecraft/world/entity/npc/Villager.java
-index e61abd923cc1ca469f01249563da7ff31ead7bdd..f7b3b11bd6b395d199e725bc0c0192c28cc3cd86 100644
+index c5a8edf426e79b8746c7a5a5a5de3e3df1708740..f030c8d7c28039fde273e6b30c63ea791c8de520 100644
--- a/src/main/java/net/minecraft/world/entity/npc/Villager.java
+++ b/src/main/java/net/minecraft/world/entity/npc/Villager.java
@@ -826,9 +826,17 @@ public class Villager extends AbstractVillager implements ReputationEventHandler
@@ -38,7 +38,7 @@ index e61abd923cc1ca469f01249563da7ff31ead7bdd..f7b3b11bd6b395d199e725bc0c0192c2
+ }
+ // Paper end
+
-+ Villager.LOGGER.info("Villager {} was struck by lightning {}.", this, lightning); // Paper - move log down, event can cancel
++ if (org.spigotmc.SpigotConfig.logVillagerDeaths) Villager.LOGGER.info("Villager {} was struck by lightning {}.", this, lightning); // Paper - move log down, event can cancel
+
entitywitch.moveTo(this.getX(), this.getY(), this.getZ(), this.getYRot(), this.getXRot());
entitywitch.finalizeSpawn(world, world.getCurrentDifficultyAt(entitywitch.blockPosition()), MobSpawnType.CONVERSION, (SpawnGroupData) null, (CompoundTag) null);