Skip to content

Commit ed25151

Browse files
committed
Remove unnecessary section data removal list
Signed-off-by: HellFirePvP <7419378+HellFirePvP@users.noreply.github.com>
1 parent a8f4c2c commit ed25151

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/hellfirepvp/observerlib/common/data/base/SectionWorldData.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public abstract class SectionWorldData<T extends SectionWorldData<T, S>, S exten
3838
private final int precision;
3939

4040
private final AlternatingSet<SectionKey> dirtySections = new AlternatingSet<>();
41-
private final Set<SectionKey> removedSections = new HashSet<>();
4241

4342
protected SectionWorldData(WorldCacheDomain.SaveKey<T> key, Codec<S> sectionCodec, int sectionPrecision) {
4443
super(key);
@@ -108,12 +107,12 @@ private S getSection(SectionKey key) {
108107

109108
public boolean removeSection(S section) {
110109
SectionKey key = SectionKey.from(section);
111-
return this.sections.remove(key) == section && this.removedSections.add(key);
110+
return this.sections.remove(key) != null;
112111
}
113112

114113
public boolean removeSection(Vec3i absolute) {
115114
SectionKey key = SectionKey.resolve(absolute, this.precision);
116-
return this.sections.remove(key) != null && this.removedSections.add(key);
115+
return this.sections.remove(key) != null;
117116
}
118117

119118
@Nonnull

0 commit comments

Comments
 (0)