mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 03:39:09 +00:00
Fix greenhouse
This commit is contained in:
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()));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user