Fixed GregTech scanner compatibility
This commit is contained in:
parent
1df4190c7d
commit
505d30d706
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ public class ClientHandler {
|
||||||
|
|
||||||
@SubscribeEvent(priority = EventPriority.HIGHEST)
|
@SubscribeEvent(priority = EventPriority.HIGHEST)
|
||||||
public void onTooltipEvent(ItemTooltipEvent event) {
|
public void onTooltipEvent(ItemTooltipEvent event) {
|
||||||
if (!event.entityPlayer.capabilities.isCreativeMode) {
|
if (event.entityPlayer == null || !event.entityPlayer.capabilities.isCreativeMode) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (WarpDrive.isDev) {// disabled in production
|
if (WarpDrive.isDev) {// disabled in production
|
||||||
|
|
Loading…
Add table
Reference in a new issue