Add null check

This commit is contained in:
HoleFish committed 2024-06-14 02:43:46 +08:00
1 parent 04cd7ed0b2
commit 55b17a175c
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) {