Should fix #790 I think

This commit is contained in:
pahimar 2015-04-06 08:20:28 -04:00
parent ad83088933
commit bb7b40c8bb

View file

@ -33,7 +33,7 @@ public class ItemTooltipEventHandler
@SubscribeEvent
public void handleItemTooltipEvent(ItemTooltipEvent event)
{
if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || event.entityPlayer.openContainer instanceof ContainerAlchemicalTome)
if (Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT) || (event.entityPlayer != null && event.entityPlayer.openContainer instanceof ContainerAlchemicalTome))
{
WrappedStack stack = new WrappedStack(event.itemStack);