Implemented robit crash fix
This commit is contained in:
parent
d8b9ff7a20
commit
17f8fa11da
1 changed files with 5 additions and 1 deletions
|
@ -520,7 +520,11 @@ public class EntityRobit extends EntityCreature implements IInventory, ISustaine
|
|||
|
||||
public double getEnergy()
|
||||
{
|
||||
return Double.parseDouble(dataWatcher.getWatchableObjectString(12));
|
||||
try {
|
||||
return Double.parseDouble(dataWatcher.getWatchableObjectString(12));
|
||||
} catch(Exception e) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public void setEnergy(double energy)
|
||||
|
|
Loading…
Reference in a new issue