Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
Fix canceling BlockPlaceEvent
Dieser Commit ist enthalten in:
Ursprung
bf401fbbde
Commit
9255e9d82c
@ -1,5 +1,5 @@
|
|||||||
--- ../work/decompile-8eb82bde//net/minecraft/server/ItemStack.java 2014-11-28 17:43:43.241707432 +0000
|
--- ../work/decompile-8eb82bde//net/minecraft/server/ItemStack.java 2014-11-29 21:16:43.705017876 +0000
|
||||||
+++ src/main/java/net/minecraft/server/ItemStack.java 2014-11-28 17:38:20.000000000 +0000
|
+++ src/main/java/net/minecraft/server/ItemStack.java 2014-11-29 21:16:36.581018034 +0000
|
||||||
@@ -5,6 +5,18 @@
|
@@ -5,6 +5,18 @@
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
--- ../work/decompile-8eb82bde//net/minecraft/server/World.java 2014-11-29 21:08:51.989028346 +0000
|
--- ../work/decompile-8eb82bde//net/minecraft/server/World.java 2014-11-29 21:17:20.461017061 +0000
|
||||||
+++ src/main/java/net/minecraft/server/World.java 2014-11-29 21:07:57.617029552 +0000
|
+++ src/main/java/net/minecraft/server/World.java 2014-11-29 21:17:07.617017346 +0000
|
||||||
@@ -13,6 +13,22 @@
|
@@ -13,6 +13,22 @@
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.concurrent.Callable;
|
import java.util.concurrent.Callable;
|
||||||
@ -53,7 +53,7 @@
|
|||||||
+ while( blockStateIterator.hasNext() ) {
|
+ while( blockStateIterator.hasNext() ) {
|
||||||
+ BlockState blockState1 = blockStateIterator.next();
|
+ BlockState blockState1 = blockStateIterator.next();
|
||||||
+ if ( blockState1.getLocation().equals( blockState.getLocation() ) ) {
|
+ if ( blockState1.getLocation().equals( blockState.getLocation() ) ) {
|
||||||
+ blockStateIterator.remove();
|
+ return false;
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
@ -141,7 +141,7 @@
|
|||||||
|
|
||||||
if (iblockdata1 == null) {
|
if (iblockdata1 == null) {
|
||||||
+ // CraftBukkit start - remove blockstate if failed
|
+ // CraftBukkit start - remove blockstate if failed
|
||||||
+ if (!this.captureBlockStates) {
|
+ if (this.captureBlockStates) {
|
||||||
+ this.capturedBlockStates.remove(blockstate);
|
+ this.capturedBlockStates.remove(blockstate);
|
||||||
+ }
|
+ }
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren