Fixed GregTech scanner compatibility

This commit is contained in:
LemADEC 2016-01-15 00:04:17 +01:00
parent 1df4190c7d
commit 505d30d706

View file

@ -15,7 +15,7 @@ public class ClientHandler {
@SubscribeEvent(priority = EventPriority.HIGHEST)
public void onTooltipEvent(ItemTooltipEvent event) {
if (!event.entityPlayer.capabilities.isCreativeMode) {
if (event.entityPlayer == null || !event.entityPlayer.capabilities.isCreativeMode) {
return;
}
if (WarpDrive.isDev) {// disabled in production