mirror of
https://github.com/KAMKEEL/CustomNPC-Gecko-Addon.git
synced 2026-11-20 00:39:42 +00:00
Fixed tile entity creating without a world instance in it
This commit is contained in:
1 parent
2621c26d6d
commit
2d448b5aad
1 file changed
+1
-1
@@ -74,7 +74,7 @@ public class GeckoAPI extends AbstractGeckoAPI {
|
||||
private TileEntityCustomModel getOrCreateTECM(IBlockScripted scriptedBlock){
|
||||
TileScripted tile = (TileScripted) scriptedBlock.getMCTileEntity();
|
||||
if(!(tile.renderTile instanceof TileEntityCustomModel)){
|
||||
tile.renderTile = new TileEntityCustomModel();
|
||||
tile.renderTile = new TileEntityCustomModel(tile);
|
||||
}
|
||||
return (TileEntityCustomModel) tile.renderTile;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user