pull/7/head
valoeghese 2020-02-25 21:25:19 +13:00
parent a64ba98e51
commit 94df8803ca
1 changed files with 7 additions and 0 deletions

View File

@ -40,6 +40,13 @@ public class Chunk implements TileAccess
return this.blocks.get(hash);
}
public BlockEntity getBlockEntityAndEnableRendering(int x, int y, int z)
{
this.setRender(true);
long hash = posHash(x, y, z);
return this.blockEntities.get(hash);
}
public void render()
{
if (this.render)