Clone mutable types in events when changes are discarded (#10333)
This commit is contained in:
parent
71a2187c20
commit
3e27ced8ce
10 changed files with 163 additions and 13 deletions
|
@ -79,9 +79,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ /**
|
||||
+ * @return The new state of this block (Air, or a Fluid type)
|
||||
+ */
|
||||
+ @NotNull
|
||||
+ public BlockData getNewState() {
|
||||
+ return this.newState;
|
||||
+ public @NotNull BlockData getNewState() {
|
||||
+ return this.newState.clone();
|
||||
+ }
|
||||
+
|
||||
+ /**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue