Skip to content

Commit

Permalink
Update for Bukkit's variable "canSave" being renamed to "savingDisabled"
Browse files Browse the repository at this point in the history
Followed Bukkit's refactoring of canSave to become savingDisabled.
  • Loading branch information
Morgan Humes committed Jan 19, 2012
1 parent 8793f36 commit 591b8f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net/milkbowl/autosave/AutoSave.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public void onDisable() {
world.setAutoSave(true);
} else {
// this should be false because canSave is really noSave
((CraftWorld) world).getHandle().canSave = false;
((CraftWorld) world).getHandle().savingDisabled = false;
}
}
}
Expand Down Expand Up @@ -135,7 +135,7 @@ public void onEnable() {
world.setAutoSave(false);
} else {
// this should be true because canSave is really noSave
((CraftWorld) world).getHandle().canSave = true;
((CraftWorld) world).getHandle().savingDisabled = true;
}
}
}
Expand Down

0 comments on commit 591b8f5

Please sign in to comment.