1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-01-31 03:50:36 +01:00

Fix Tile Entities - Fixed

This commit is contained in:
Aikar 2018-07-04 17:22:38 -04:00
parent cc84e0fab8
commit 25f583aaa4

View file

@ -22,7 +22,7 @@ index 71d0db3f3..a51b648c5 100644
this.a(entity, entity.ac); this.a(entity, entity.ac);
} }
diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java
index c0816b9f8..36818bf55 100644 index c0816b9f8..bd15f0588 100644
--- a/src/main/java/net/minecraft/server/World.java --- a/src/main/java/net/minecraft/server/World.java
+++ b/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java
@@ -0,0 +0,0 @@ public abstract class World implements IBlockAccess { @@ -0,0 +0,0 @@ public abstract class World implements IBlockAccess {
@ -87,12 +87,9 @@ index c0816b9f8..36818bf55 100644
} }
// CraftBukkit end */ // CraftBukkit end */
- if (this.isLoaded(tileentity1.getPosition())) {
- Chunk chunk = this.getChunkAtWorldCoords(tileentity1.getPosition());
+ // Paper + // Paper
+ net.minecraft.server.Chunk chunk = tileentity1.getCurrentChunk(); if (this.isLoaded(tileentity1.getPosition())) {
+ if (chunk != null) { Chunk chunk = this.getChunkAtWorldCoords(tileentity1.getPosition());
+ //Chunk chunk = this.getChunkAtWorldCoords(tileentity1.getPosition());
+ // Paper end + // Paper end
IBlockData iblockdata = chunk.getBlockData(tileentity1.getPosition()); IBlockData iblockdata = chunk.getBlockData(tileentity1.getPosition());