Implemented robit crash fix

This commit is contained in:
Aidan C. Brady 2014-07-13 23:34:01 -04:00
parent d8b9ff7a20
commit 17f8fa11da

View file

@ -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)