This commit is contained in:
mcrcortex
2025-09-20 22:28:55 +10:00
parent d5ab22c7f3
commit e0d125906b

View File

@@ -16,6 +16,7 @@ public class WorldEngine {
public static final int UPDATE_TYPE_BLOCK_BIT = 1;
public static final int UPDATE_TYPE_CHILD_EXISTENCE_BIT = 2;
public static final int UPDATE_TYPE_DONT_SAVE = 4;
public static final int UPDATE_FLAGS = UPDATE_TYPE_BLOCK_BIT | UPDATE_TYPE_CHILD_EXISTENCE_BIT;
public interface ISectionChangeCallback {void accept(WorldSection section, int updateFlags);}
@@ -123,7 +124,7 @@ public class WorldEngine {
if (this.dirtyCallback != null) {
this.dirtyCallback.accept(section, changeState);
}
if (!section.inSaveQueue) {
if ((!section.inSaveQueue)&&(changeState&UPDATE_TYPE_DONT_SAVE)==0) {
section.markDirty();
}
}