summaryrefslogtreecommitdiffstats
path: root/nms-patches/PathfinderGoalHorseTrap.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-09-15 19:16:42 +1000
committermd_5 <git@md-5.net>2018-09-15 19:16:42 +1000
commita4bdecff654c72281fbce4cebf1ff55d86470d07 (patch)
treebc74d31e95cbbcc64b7e7c8cca84d80ea84b80d4 /nms-patches/PathfinderGoalHorseTrap.patch
parent34caaf6d680ea1f1fa918bbd12daee09ca7a6fc8 (diff)
downloadcraftbukkit-a4bdecff654c72281fbce4cebf1ff55d86470d07.tar
craftbukkit-a4bdecff654c72281fbce4cebf1ff55d86470d07.tar.gz
craftbukkit-a4bdecff654c72281fbce4cebf1ff55d86470d07.tar.lz
craftbukkit-a4bdecff654c72281fbce4cebf1ff55d86470d07.tar.xz
craftbukkit-a4bdecff654c72281fbce4cebf1ff55d86470d07.zip
SPIGOT-4372: LightningStrikeEvent cause API
Diffstat (limited to 'nms-patches/PathfinderGoalHorseTrap.patch')
-rw-r--r--nms-patches/PathfinderGoalHorseTrap.patch8
1 files changed, 6 insertions, 2 deletions
diff --git a/nms-patches/PathfinderGoalHorseTrap.patch b/nms-patches/PathfinderGoalHorseTrap.patch
index 47730fe0..35e41e6a 100644
--- a/nms-patches/PathfinderGoalHorseTrap.patch
+++ b/nms-patches/PathfinderGoalHorseTrap.patch
@@ -1,7 +1,11 @@
--- a/net/minecraft/server/PathfinderGoalHorseTrap.java
+++ b/net/minecraft/server/PathfinderGoalHorseTrap.java
-@@ -21,13 +21,14 @@
- this.a.world.strikeLightning(new EntityLightning(this.a.world, this.a.locX, this.a.locY, this.a.locZ, true));
+@@ -18,16 +18,17 @@
+ this.a.s(false);
+ this.a.setTamed(true);
+ this.a.setAgeRaw(0);
+- this.a.world.strikeLightning(new EntityLightning(this.a.world, this.a.locX, this.a.locY, this.a.locZ, true));
++ ((WorldServer) this.a.world).strikeLightning(new EntityLightning(this.a.world, this.a.locX, this.a.locY, this.a.locZ, true), org.bukkit.event.weather.LightningStrikeEvent.Cause.TRAP); // CraftBukkit
EntitySkeleton entityskeleton = this.a(difficultydamagescaler, this.a);
- entityskeleton.startRiding(this.a);