fix the thing

This commit is contained in:
Ellpeck 2016-08-09 21:01:05 +02:00
parent ee9abd4960
commit 2590e4b4b3
2 changed files with 2 additions and 1 deletions

View file

@ -393,6 +393,7 @@ public class GuiBooklet extends GuiScreen implements IBookletGui{
NBTTagCompound extraData = new NBTTagCompound();
extraData.setBoolean("BookAlreadyOpened", true);
PacketHandlerHelper.sendChangePlayerDataPacket(extraData);
}
else{
BookletUtils.openLastBookPage(this, data.theCompound.getCompoundTag("BookletData"));

View file

@ -156,7 +156,7 @@ public final class PacketHandler{
PlayerData.PlayerSave playerData = PlayerData.getDataFromPlayer(player);
playerData.theCompound.merge(data);
if(player instanceof EntityPlayerMP){
PacketHandlerHelper.sendPlayerDataToClientPacket(player, playerData.theCompound, false);
}
}
}