Fix task updates not triggering chunk save
This commit is contained in:
parent
25d89c73d9
commit
a00e7cdc35
@ -149,6 +149,7 @@ public class BlockEntityMatterPanel extends BlockEntityMattery implements IMatte
|
|||||||
tasks.put(entry.getKey(), newer);
|
tasks.put(entry.getKey(), newer);
|
||||||
listeners.forEach(menu -> menu.taskUpdated(newer));
|
listeners.forEach(menu -> menu.taskUpdated(newer));
|
||||||
grid.onMatterTaskUpdated(newer, task);
|
grid.onMatterTaskUpdated(newer, task);
|
||||||
|
setChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
return new MatterTaskAllocation(task, get_pattern);
|
return new MatterTaskAllocation(task, get_pattern);
|
||||||
@ -189,6 +190,8 @@ public class BlockEntityMatterPanel extends BlockEntityMattery implements IMatte
|
|||||||
listeners.forEach(menu -> menu.taskUpdated(finalGet_task));
|
listeners.forEach(menu -> menu.taskUpdated(finalGet_task));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setChanged();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -239,6 +242,7 @@ public class BlockEntityMatterPanel extends BlockEntityMattery implements IMatte
|
|||||||
grid.onMatterTaskRemoved(task);
|
grid.onMatterTaskRemoved(task);
|
||||||
|
|
||||||
listeners.forEach(menu -> menu.taskRemoved(task));
|
listeners.forEach(menu -> menu.taskRemoved(task));
|
||||||
|
setChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeTask(PatternState state) {
|
public void removeTask(PatternState state) {
|
||||||
@ -254,6 +258,8 @@ public class BlockEntityMatterPanel extends BlockEntityMattery implements IMatte
|
|||||||
|
|
||||||
listeners.forEach(menu -> menu.taskUpdated(task));
|
listeners.forEach(menu -> menu.taskUpdated(task));
|
||||||
|
|
||||||
|
setChanged();
|
||||||
|
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user