mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 02:55:47 +01:00
Fix sound/particles not showing when listening on BlockDestroyEvent (#3998)
This commit is contained in:
parent
0cf106087d
commit
eb510c404d
@ -12,7 +12,7 @@ This can replace many uses of BlockPhysicsEvent
|
|||||||
|
|
||||||
diff --git a/src/main/java/com/destroystokyo/paper/event/block/BlockDestroyEvent.java b/src/main/java/com/destroystokyo/paper/event/block/BlockDestroyEvent.java
|
diff --git a/src/main/java/com/destroystokyo/paper/event/block/BlockDestroyEvent.java b/src/main/java/com/destroystokyo/paper/event/block/BlockDestroyEvent.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000000000000000000000000000000000000..3aee12f1cb37b0672bdcdfac1e932bd4e3a184b0
|
index 0000000000000000000000000000000000000000..28255dc39eab5faf324d1fe556ab12daed527ff6
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/com/destroystokyo/paper/event/block/BlockDestroyEvent.java
|
+++ b/src/main/java/com/destroystokyo/paper/event/block/BlockDestroyEvent.java
|
||||||
@@ -0,0 +1,92 @@
|
@@ -0,0 +1,92 @@
|
||||||
@ -42,7 +42,7 @@ index 0000000000000000000000000000000000000000..3aee12f1cb37b0672bdcdfac1e932bd4
|
|||||||
+
|
+
|
||||||
+ @NotNull private final BlockData newState;
|
+ @NotNull private final BlockData newState;
|
||||||
+ private final boolean willDrop;
|
+ private final boolean willDrop;
|
||||||
+ private boolean playEffect;
|
+ private boolean playEffect = true;
|
||||||
+
|
+
|
||||||
+ private boolean cancelled = false;
|
+ private boolean cancelled = false;
|
||||||
+
|
+
|
||||||
|
Loading…
Reference in New Issue
Block a user