mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-21 12:32:42 +00:00
Fix freeze when the player dies while the book is open
This commit is contained in:
1 parent
9dd7eec444
commit
d8f84802dd
1 file changed
+3
-1
@@ -35,7 +35,9 @@ public class PacketUpdateSavedPage extends AbstractPacket {
|
||||
|
||||
ItemStack is = player.getHeldItem(EnumHand.MAIN_HAND);
|
||||
|
||||
BookHelper.writeSavedPage(is, pageName);
|
||||
if(is != null) {
|
||||
BookHelper.writeSavedPage(is, pageName);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user