Skip to content

Commit

Permalink
Убран критический баг при котором удаляются все регионы в мире
Browse files Browse the repository at this point in the history
  • Loading branch information
ScarletRedMan committed Oct 19, 2021
1 parent eeaea52 commit a9827bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ru/dragonestia/dguard/region/Region.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void setRole(String playerName, Role role){

public synchronized void remove(){
closed = true;
DGuard.regions.remove(levelName).remove(id);
DGuard.regions.get(levelName).remove(id);
main.getServer().getScheduler().scheduleAsyncTask(main, new RegionRemoveTask(this, main));
}

Expand Down

0 comments on commit a9827bd

Please sign in to comment.