Add null check (#211)

This commit is contained in:
HoleFish authored and GitHub committed 2024-06-17 23:27:29 +02:00
1 parent 04cd7ed0b2
commit 75c8f55bb9
1 file changed
+6 -2
@@ -45,8 +45,12 @@ public class SPacketMEUpdateBuffer {
}
public static void disable() {
task.cancel(false);
executor.shutdown();
if (task != null) {
task.cancel(false);
}
if (executor != null) {
executor.shutdown();
}
}
public static void scheduleItemUpdate(EntityPlayerMP player, List<IAEItemStack> stacks) {