mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 06:30:46 +01:00
Fix Tile Entities - #1192 Fixed
This commit is contained in:
parent
cc84e0fab8
commit
25f583aaa4
1 changed files with 3 additions and 6 deletions
|
@ -22,7 +22,7 @@ index 71d0db3f3..a51b648c5 100644
|
|||
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
|
||||
index c0816b9f8..36818bf55 100644
|
||||
index c0816b9f8..bd15f0588 100644
|
||||
--- a/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 {
|
||||
|
@ -87,12 +87,9 @@ index c0816b9f8..36818bf55 100644
|
|||
}
|
||||
// CraftBukkit end */
|
||||
|
||||
- if (this.isLoaded(tileentity1.getPosition())) {
|
||||
- Chunk chunk = this.getChunkAtWorldCoords(tileentity1.getPosition());
|
||||
+ // Paper
|
||||
+ net.minecraft.server.Chunk chunk = tileentity1.getCurrentChunk();
|
||||
+ if (chunk != null) {
|
||||
+ //Chunk chunk = this.getChunkAtWorldCoords(tileentity1.getPosition());
|
||||
if (this.isLoaded(tileentity1.getPosition())) {
|
||||
Chunk chunk = this.getChunkAtWorldCoords(tileentity1.getPosition());
|
||||
+ // Paper end
|
||||
IBlockData iblockdata = chunk.getBlockData(tileentity1.getPosition());
|
||||
|
||||
|
|
Loading…
Reference in a new issue