mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:25:03 +01:00
SPIGOT-1986: Fix flying players spamming EntityToggleGlideEvent
By: 0x277F <0x277F@gmail.com>
This commit is contained in:
parent
bee4c7641d
commit
277b9a6caa
1 changed files with 0 additions and 8 deletions
|
@ -378,11 +378,3 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1266,6 +1426,7 @@
|
|
||||||
this.motY = d3 * 0.6D;
|
|
||||||
this.aQ = f2;
|
|
||||||
this.fallDistance = 0.0F;
|
|
||||||
+ if (!getFlag(7) && !CraftEventFactory.callToggleGlideEvent(this, false).isCancelled()) // CraftBukkit
|
|
||||||
this.setFlag(7, false);
|
|
||||||
} else {
|
|
||||||
super.g(f, f1);
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue