Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-1968: Use correct explosion yield
Dieser Commit ist enthalten in:
Ursprung
ff617f73cd
Commit
8269b99393
@ -90,13 +90,13 @@
|
|||||||
+ float yield;
|
+ float yield;
|
||||||
+
|
+
|
||||||
+ if (explode != null) {
|
+ if (explode != null) {
|
||||||
+ EntityExplodeEvent event = new EntityExplodeEvent(explode, location, blockList, 0.3F);
|
+ EntityExplodeEvent event = new EntityExplodeEvent(explode, location, blockList, 1.0F / this.size);
|
||||||
+ this.world.getServer().getPluginManager().callEvent(event);
|
+ this.world.getServer().getPluginManager().callEvent(event);
|
||||||
+ cancelled = event.isCancelled();
|
+ cancelled = event.isCancelled();
|
||||||
+ bukkitBlocks = event.blockList();
|
+ bukkitBlocks = event.blockList();
|
||||||
+ yield = event.getYield();
|
+ yield = event.getYield();
|
||||||
+ } else {
|
+ } else {
|
||||||
+ BlockExplodeEvent event = new BlockExplodeEvent(location.getBlock(), blockList, 0.3F);
|
+ BlockExplodeEvent event = new BlockExplodeEvent(location.getBlock(), blockList, 1.0F / this.size);
|
||||||
+ this.world.getServer().getPluginManager().callEvent(event);
|
+ this.world.getServer().getPluginManager().callEvent(event);
|
||||||
+ cancelled = event.isCancelled();
|
+ cancelled = event.isCancelled();
|
||||||
+ bukkitBlocks = event.blockList();
|
+ bukkitBlocks = event.blockList();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren