Implement missing data syncing methods

Fix MRS not syncing data immediately.
This commit is contained in:
Nicholas Ignoffo 2016-09-07 17:12:25 -07:00
parent f4feb07e47
commit 4d331aa758
10 changed files with 186 additions and 0 deletions

View file

@ -19,6 +19,8 @@ import WayofTime.bloodmagic.api.soul.DemonWillHolder;
import WayofTime.bloodmagic.api.soul.EnumDemonWillType;
import WayofTime.bloodmagic.block.BlockDemonCrystal;
import WayofTime.bloodmagic.demonAura.WorldDemonWillHandler;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
public class TileDemonCrystal extends TileEntity implements ITickable
{
@ -214,6 +216,7 @@ public class TileDemonCrystal extends TileEntity implements ITickable
}
@Override
@SideOnly(Side.CLIENT)
public void onDataPacket(NetworkManager net, SPacketUpdateTileEntity pkt)
{
super.onDataPacket(net, pkt);
@ -226,4 +229,10 @@ public class TileDemonCrystal extends TileEntity implements ITickable
{
return writeToNBT(new NBTTagCompound());
}
@Override
public void handleUpdateTag(NBTTagCompound tag)
{
readFromNBT(tag);
}
}