Fix issues with present clientside desync

This commit is contained in:
tterrag1098 committed 2015-04-06 21:44:37 -04:00
1 parent 7c9f8eca2d
commit 4bcfeb1889
1 file changed
+5 -7
@@ -79,14 +79,12 @@ public class BlockPresent extends Block implements ICarvable {
TileEntityPresent te = (TileEntityPresent) world.getTileEntity(x, y, z);
world.setBlockMetadataWithNotify(x, y, z, stack.getItemDamage(), 3);
te.setRotation(heading);
if (!world.isRemote) {
te.findConnections();
if (te.isConnected()) {
TileEntityPresent other = te.getConnection();
other.setRotation(heading);
}
world.markBlockForUpdate(x, y, z);
te.findConnections();
if (te.isConnected()) {
TileEntityPresent other = te.getConnection();
other.setRotation(heading);
}
world.markBlockForUpdate(x, y, z);
}
@Override