Fixed laser tree farm intermittent CC script crash

This commit is contained in:
LemADEC 2016-01-28 03:39:54 +01:00
parent 0611016533
commit 8de46d5ee3

View file

@ -588,7 +588,7 @@ public class TileEntityLaserTreeFarm extends TileEntityAbstractMiner {
int energy = getEnergyStored();
String status = getStatus();
Integer retValuables, retValuablesIndex;
if (isFarming()) {
if (isFarming() && valuables != null) {
retValuables = valuables.size();
retValuablesIndex = valuableIndex;