Fixes #1853 - pt. 2
This commit is contained in:
@@ -127,8 +127,10 @@ public class CraftingManager implements ICraftingManager {
|
|||||||
boolean changed = !tasksToCancel.isEmpty() || !tasksToAdd.isEmpty();
|
boolean changed = !tasksToCancel.isEmpty() || !tasksToAdd.isEmpty();
|
||||||
|
|
||||||
for (UUID idToCancel : tasksToCancel) {
|
for (UUID idToCancel : tasksToCancel) {
|
||||||
this.tasks.get(idToCancel).onCancelled();
|
if (this.tasks.containsKey(idToCancel)) {
|
||||||
this.tasks.remove(idToCancel);
|
this.tasks.get(idToCancel).onCancelled();
|
||||||
|
this.tasks.remove(idToCancel);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.tasksToCancel.clear();
|
this.tasksToCancel.clear();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user