SPIGOT-725: Always return captured tile entities

This commit is contained in:
Thinkofdeath 2015-03-22 19:21:34 +00:00
parent 970be7a444
commit 22c613d869

View file

@ -1,5 +1,5 @@
--- /home/matt/mc-dev-private//net/minecraft/server/World.java 2015-03-16 15:55:03.450982504 +0000 --- /home/matt/mc-dev-private//net/minecraft/server/World.java 2015-03-22 19:21:15.741866512 +0000
+++ src/main/java/net/minecraft/server/World.java 2015-03-16 15:55:03.454982504 +0000 +++ src/main/java/net/minecraft/server/World.java 2015-03-22 19:21:15.745866512 +0000
@@ -13,6 +13,25 @@ @@ -13,6 +13,25 @@
import java.util.UUID; import java.util.UUID;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
@ -467,7 +467,7 @@
return null; return null;
} else { } else {
+ // CraftBukkit start + // CraftBukkit start
+ if (captureBlockStates && capturedTileEntities.containsKey(blockposition)) { + if (capturedTileEntities.containsKey(blockposition)) {
+ return capturedTileEntities.get(blockposition); + return capturedTileEntities.get(blockposition);
+ } + }
+ // CraftBukkit end + // CraftBukkit end