mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 14:33:56 +01:00
SPIGOT-1930: Fix spam for EntityToggleGlideEvent
This commit is contained in:
parent
e43b2780a5
commit
feb2fd5e43
@ -382,7 +382,7 @@
|
|||||||
this.motY = d3 * 0.6D;
|
this.motY = d3 * 0.6D;
|
||||||
this.aQ = f2;
|
this.aQ = f2;
|
||||||
this.fallDistance = 0.0F;
|
this.fallDistance = 0.0F;
|
||||||
+ if (!CraftEventFactory.callToggleGlideEvent(this, false).isCancelled()) // CraftBukkit
|
+ if (!getFlag(7) && !CraftEventFactory.callToggleGlideEvent(this, false).isCancelled()) // CraftBukkit
|
||||||
this.setFlag(7, false);
|
this.setFlag(7, false);
|
||||||
} else {
|
} else {
|
||||||
super.g(f, f1);
|
super.g(f, f1);
|
||||||
|
@ -506,7 +506,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!this.world.isClientSide) {
|
if (!this.world.isClientSide) {
|
||||||
+ if (!CraftEventFactory.callToggleGlideEvent(this, flag).isCancelled()) // CraftBukkit
|
+ if (flag != this.getFlag(7) && !CraftEventFactory.callToggleGlideEvent(this, flag).isCancelled()) // CraftBukkit
|
||||||
this.setFlag(7, flag);
|
this.setFlag(7, flag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user