mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-19 19:49:50 +00:00
Implemented robit crash fix
This commit is contained in:
1 parent
d8b9ff7a20
commit
17f8fa11da
1 file changed
+5
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user