Client crash when not in game
This commit is contained in:
parent
135f0a3c10
commit
44a8007e33
2 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ public class WatchMyDurability
|
|||
@SubscribeEvent
|
||||
public static void onTick(TickEvent.ClientTickEvent ev)
|
||||
{
|
||||
if(ev.phase == TickEvent.Phase.END && TICKS >= 40)
|
||||
if(ev.phase == TickEvent.Phase.END && TICKS >= 40 && isInGame)
|
||||
{
|
||||
TICKS=0;
|
||||
CheckInventory.getInstance().run();
|
||||
|
|
Reference in a new issue