Skip to content

Commit e3af89e

Browse files
Patch
1 parent 63e8682 commit e3af89e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/main/java/fun/pozzoo/quickwaystones/QuickWaystones.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,13 @@ public static Map<Location, WaystoneData> getWaystonesMap() {
8787
}
8888

8989
public static void removeWaystone(Location location) {
90-
waystonesMap.remove(location);
90+
WaystoneData removed = waystonesMap.remove(location);
91+
if (removed != null) {
92+
String id = removed.getId();
93+
for (Set<String> access : playerAccess.values()) {
94+
access.remove(id);
95+
}
96+
}
9197
saveData();
9298
}
9399

0 commit comments

Comments
 (0)