mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-05 06:32:17 -07:00
Remove cb null check
This commit is contained in:
@@ -131,11 +131,12 @@
|
||||
boolean flag = this.distanceManager.runAllUpdates(this.chunkMap);
|
||||
boolean flag1 = this.chunkMap.promoteChunkMap();
|
||||
this.chunkMap.runGenerationTasks();
|
||||
@@ -315,17 +_,38 @@
|
||||
@@ -315,17 +_,39 @@
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
- this.save(true);
|
||||
+ // CraftBukkit start
|
||||
+ this.close(true);
|
||||
+ }
|
||||
+
|
||||
@@ -209,13 +210,12 @@
|
||||
|
||||
@Override
|
||||
public void setSpawnSettings(boolean spawnSettings) {
|
||||
- this.spawnEnemies = spawnSettings;
|
||||
- this.spawnFriendlies = this.spawnFriendlies;
|
||||
+ // CraftBukkit start
|
||||
+ this.setSpawnSettings(spawnSettings, this.spawnFriendlies);
|
||||
+ }
|
||||
+ public void setSpawnSettings(boolean spawnEnemies, boolean spawnFriendlies) {
|
||||
+ this.spawnEnemies = spawnEnemies;
|
||||
+ public void setSpawnSettings(boolean spawnSettings, boolean spawnFriendlies) {
|
||||
this.spawnEnemies = spawnSettings;
|
||||
- this.spawnFriendlies = this.spawnFriendlies;
|
||||
+ this.spawnFriendlies = spawnFriendlies;
|
||||
+ // CraftBukkit end
|
||||
}
|
||||
|
Reference in New Issue
Block a user