Bugfix attempt to remove render lag (see WayofTime#1457) (#1458)
Simplified the whole branch since it got really messed up
This commit is contained in:
parent
4f04fde127
commit
fa87ed0e17
|
@ -35,8 +35,6 @@ public class TileDemonCrystal extends TileTicking
|
|||
{
|
||||
if (getWorld().isRemote)
|
||||
{
|
||||
if(internalCounter % 20 == 0)
|
||||
getWorld().markBlockRangeForRenderUpdate(pos, pos);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -208,4 +206,10 @@ public class TileDemonCrystal extends TileTicking
|
|||
{
|
||||
this.placement = placement;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDataPacketClientReceived() {
|
||||
super.onDataPacketClientReceived();
|
||||
notifyUpdate();
|
||||
}
|
||||
}
|
|
@ -97,6 +97,14 @@ public class TileBase extends TileEntity {
|
|||
public final void onDataPacket(NetworkManager net, SPacketUpdateTileEntity pkt) {
|
||||
super.onDataPacket(net, pkt);
|
||||
readFromNBT(pkt.getNbtCompound());
|
||||
onDataPacketClientReceived();
|
||||
}
|
||||
|
||||
/**
|
||||
* Hook for performing client side updates after data packets are received and processed
|
||||
*/
|
||||
protected void onDataPacketClientReceived() {
|
||||
// noop
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue