mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
fix the thing
This commit is contained in:
parent
ee9abd4960
commit
2590e4b4b3
2 changed files with 2 additions and 1 deletions
|
@ -393,6 +393,7 @@ public class GuiBooklet extends GuiScreen implements IBookletGui{
|
||||||
|
|
||||||
NBTTagCompound extraData = new NBTTagCompound();
|
NBTTagCompound extraData = new NBTTagCompound();
|
||||||
extraData.setBoolean("BookAlreadyOpened", true);
|
extraData.setBoolean("BookAlreadyOpened", true);
|
||||||
|
PacketHandlerHelper.sendChangePlayerDataPacket(extraData);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
BookletUtils.openLastBookPage(this, data.theCompound.getCompoundTag("BookletData"));
|
BookletUtils.openLastBookPage(this, data.theCompound.getCompoundTag("BookletData"));
|
||||||
|
|
|
@ -156,7 +156,7 @@ public final class PacketHandler{
|
||||||
PlayerData.PlayerSave playerData = PlayerData.getDataFromPlayer(player);
|
PlayerData.PlayerSave playerData = PlayerData.getDataFromPlayer(player);
|
||||||
playerData.theCompound.merge(data);
|
playerData.theCompound.merge(data);
|
||||||
if(player instanceof EntityPlayerMP){
|
if(player instanceof EntityPlayerMP){
|
||||||
|
PacketHandlerHelper.sendPlayerDataToClientPacket(player, playerData.theCompound, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue