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