Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-4647: Properly cancel VehicleDamageEvent
Dieser Commit ist enthalten in:
Ursprung
ec17d07def
Commit
f102d88299
@ -43,7 +43,7 @@
|
|||||||
+ this.world.getServer().getPluginManager().callEvent(event);
|
+ this.world.getServer().getPluginManager().callEvent(event);
|
||||||
+
|
+
|
||||||
+ if (event.isCancelled()) {
|
+ if (event.isCancelled()) {
|
||||||
+ return true;
|
+ return false;
|
||||||
+ }
|
+ }
|
||||||
+ // f = event.getDamage(); // TODO Why don't we do this?
|
+ // f = event.getDamage(); // TODO Why don't we do this?
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
+ this.world.getServer().getPluginManager().callEvent(event);
|
+ this.world.getServer().getPluginManager().callEvent(event);
|
||||||
+
|
+
|
||||||
+ if (event.isCancelled()) {
|
+ if (event.isCancelled()) {
|
||||||
+ return true;
|
+ return false;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ f = (float) event.getDamage();
|
+ f = (float) event.getDamage();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren