Inline the health setting for loading jail sticks.
This commit is contained in:
		| @@ -65,11 +65,8 @@ public class JailStickManager { | |||||||
|                     continue; |                     continue; | ||||||
|                 } |                 } | ||||||
|  |  | ||||||
|                 double health = -1; |  | ||||||
|                 if(a.length > 5) health = Double.valueOf(a[4]); |  | ||||||
|  |  | ||||||
|                 try { |                 try { | ||||||
|                     this.sticks.put(m, new Stick(jail, a[3], time, health)); |                     this.sticks.put(m, new Stick(jail, a[3], time, a.length > 5 ? Double.valueOf(a[4]) : -1)); | ||||||
|                 }catch (Exception e) { |                 }catch (Exception e) { | ||||||
|                     e.printStackTrace(); |                     e.printStackTrace(); | ||||||
|                     pl.getLogger().severe(s); |                     pl.getLogger().severe(s); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 graywolf336
					graywolf336