Only save a jail that is enabled.
This commit is contained in:
parent
5734eeec4c
commit
b7adc28a8c
@ -717,6 +717,7 @@ public class JailIO {
|
||||
* @param j The jail to save.
|
||||
*/
|
||||
public void saveJail(Jail j) {
|
||||
if(j.isEnabled()) {
|
||||
switch(storage) {
|
||||
case 1:
|
||||
case 2:
|
||||
@ -934,6 +935,7 @@ public class JailIO {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void saveCell(Jail j, Cell c) {
|
||||
switch(storage) {
|
||||
|
Loading…
Reference in New Issue
Block a user