Current Chunk for Entity and Block Entities, counts by entity type
This enables us a fast reference to the entities current chunk instead of having to look it up by hashmap lookups. We also store counts by type to further enable other performance optimizations in later patches.
This commit is contained in:
@@ -5,7 +5,7 @@ Subject: [PATCH] SPIGOT-1401: Fix dispenser, dropper, furnace placement
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/BlockDispenser.java b/src/main/java/net/minecraft/server/BlockDispenser.java
|
||||
index 8e794976..539b2b3c 100644
|
||||
index 8e794976a..539b2b3ce 100644
|
||||
--- a/src/main/java/net/minecraft/server/BlockDispenser.java
|
||||
+++ b/src/main/java/net/minecraft/server/BlockDispenser.java
|
||||
@@ -0,0 +0,0 @@ public class BlockDispenser extends BlockTileEntity {
|
||||
@@ -28,7 +28,7 @@ index 8e794976..539b2b3c 100644
|
||||
public boolean interact(World world, BlockPosition blockposition, IBlockData iblockdata, EntityHuman entityhuman, EnumHand enumhand, EnumDirection enumdirection, float f, float f1, float f2) {
|
||||
if (world.isClientSide) {
|
||||
diff --git a/src/main/java/net/minecraft/server/BlockFurnace.java b/src/main/java/net/minecraft/server/BlockFurnace.java
|
||||
index b6834d2d..dae71170 100644
|
||||
index b6834d2d1..dae711708 100644
|
||||
--- a/src/main/java/net/minecraft/server/BlockFurnace.java
|
||||
+++ b/src/main/java/net/minecraft/server/BlockFurnace.java
|
||||
@@ -0,0 +0,0 @@ public class BlockFurnace extends BlockTileEntity {
|
||||
|
||||
Reference in New Issue
Block a user