summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-11-28 09:33:40 +1100
committermd_5 <git@md-5.net>2017-11-28 09:33:40 +1100
commit809c399a62f65a3277f70ce3d43c30aac5045434 (patch)
tree2bc27f8c1d75506b0da58e22db2f058b8db78ec7 /nms-patches
parentf46ccd7637430f00b4fa7c742a859e3d4b6a5f03 (diff)
downloadcraftbukkit-809c399a62f65a3277f70ce3d43c30aac5045434.tar
craftbukkit-809c399a62f65a3277f70ce3d43c30aac5045434.tar.gz
craftbukkit-809c399a62f65a3277f70ce3d43c30aac5045434.tar.lz
craftbukkit-809c399a62f65a3277f70ce3d43c30aac5045434.tar.xz
craftbukkit-809c399a62f65a3277f70ce3d43c30aac5045434.zip
SPIGOT-3668: Missing EntityToggleGlideEvent in creative mode
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/EntityHuman.patch19
1 files changed, 16 insertions, 3 deletions
diff --git a/nms-patches/EntityHuman.patch b/nms-patches/EntityHuman.patch
index a8169999..3542492d 100644
--- a/nms-patches/EntityHuman.patch
+++ b/nms-patches/EntityHuman.patch
@@ -359,7 +359,20 @@
}
}
-@@ -1540,13 +1701,17 @@
+@@ -1256,7 +1417,11 @@
+ this.motY = d3 * 0.6D;
+ this.aR = f3;
+ this.fallDistance = 0.0F;
+- this.setFlag(7, false);
++ // CraftBukkit start
++ if (getFlag(7) && !org.bukkit.craftbukkit.event.CraftEventFactory.callToggleGlideEvent(this, false).isCancelled()) {
++ this.setFlag(7, false);
++ }
++ // CraftBukkit end
+ } else {
+ super.a(f, f1, f2);
+ }
+@@ -1540,13 +1705,17 @@
}
protected void releaseShoulderEntities() {
@@ -382,7 +395,7 @@
if (!this.world.isClientSide && !nbttagcompound.isEmpty()) {
Entity entity = EntityTypes.a(nbttagcompound, this.world);
-@@ -1555,9 +1720,10 @@
+@@ -1555,9 +1724,10 @@
}
entity.setPosition(this.locX, this.locY + 0.699999988079071D, this.locZ);
@@ -394,7 +407,7 @@
}
public abstract boolean isSpectator();
-@@ -1759,7 +1925,7 @@
+@@ -1759,7 +1929,7 @@
return entitymonster.c(this.a);
}