Fix greenhouse

This commit is contained in:
Nedelosk committed 2016-04-24 20:59:27 +02:00
1 parent 74c9fb57e9
commit 5be265374b
2 files changed
+5 -1

No files matched your search

@@ -41,7 +41,7 @@ public class DefaultGreenhouseLogic implements IGreenhouseLogic {
@Override
public String getName() {
return null;
return name;
}
}
@@ -218,6 +218,10 @@ public class GreenhouseController extends RectangularMultiblockControllerBase im
CamouflageUtil.readCamouflageBlockFromNBT(data, this, EnumCamouflageType.GLASS);
CamouflageUtil.readCamouflageBlockFromNBT(data, this, EnumCamouflageType.DOOR);
if(logics.isEmpty()){
createLogics();
}
for(IGreenhouseLogic logic : getLogics()){
logic.readFromNBT(data.getCompoundTag("logic" + logic.getName()));
}