mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
Fix Chunk.getTileEntities() (Fixes SPIGOT-62)
By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
9e7e5be4de
commit
56cceb9b4e
@ -111,7 +111,7 @@ public class CraftChunk implements Chunk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
BlockPosition position = (BlockPosition) obj;
|
BlockPosition position = (BlockPosition) obj;
|
||||||
entities[index++] = worldServer.getWorld().getBlockAt(position.getX() + (chunk.locX << 4), position.getY(), position.getZ() + (chunk.locZ << 4)).getState();
|
entities[index++] = worldServer.getWorld().getBlockAt(position.getX(), position.getY(), position.getZ()).getState();
|
||||||
}
|
}
|
||||||
return entities;
|
return entities;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user