Skip to content

Commit

Permalink
Fix tile ents in schematics
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Apr 6, 2016
1 parent 0ff373f commit 7ebf0b2
Showing 1 changed file with 2 additions and 5 deletions.
Expand Up @@ -47,12 +47,9 @@ public void setBlock(Block block) {
ctag.setInt("y", block.getY());
ctag.setInt("z", block.getZ());
// TODO: make this work!
TileEntity te = TileEntity.a(((CraftServer) Bukkit.getServer()).getServer(), ctag);
BlockPosition blockPos = new BlockPosition(block.getX(), block.getY(), block.getZ());
((CraftWorld) block.getWorld()).getHandle().setTileEntity(blockPos, te);
((CraftWorld) block.getWorld()).getHandle().a(te);
((CraftWorld) block.getWorld()).getHandle().getChunkAtWorldCoords(blockPos).a(blockPos, te);
// dB.log("Built ctag: " + ctag.toString());
TileEntity te = ((CraftWorld) block.getWorld()).getHandle().getTileEntity(blockPos);
te.a(ctag);
}
}

Expand Down

0 comments on commit 7ebf0b2

Please sign in to comment.