Skip to content

Commit

Permalink
Merge pull request Nukkit#426 from ProjectInfinity/master
Browse files Browse the repository at this point in the history
Remove level from level map upon closing.
  • Loading branch information
wu-vincent committed Jan 31, 2016
2 parents 21c9c87 + 1e0a8f4 commit 720f154
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/cn/nukkit/level/Level.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ public void close() {
this.blockMetadata = null;
this.blockCache.clear();
this.temporalPosition = null;
this.server.getLevels().remove(this.levelId);
}

public void addSound(Sound sound) {
Expand Down

0 comments on commit 720f154

Please sign in to comment.