mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Fix the fermenting barrel crashing with a missing compound when placing sometimes
Actually fixes #437
This commit is contained in:
parent
fc4484cc73
commit
14c776df1b
1 changed files with 4 additions and 1 deletions
|
@ -65,7 +65,10 @@ public class TileEntityFermentingBarrel extends TileEntityBase implements IShari
|
|||
public void readSyncableNBT(NBTTagCompound compound, NBTType type){
|
||||
this.currentProcessTime = compound.getInteger("ProcessTime");
|
||||
this.canolaTank.readFromNBT(compound);
|
||||
this.oilTank.readFromNBT((NBTTagCompound)compound.getTag("OilTank"));
|
||||
NBTTagCompound tag = compound.getCompoundTag("OilTank");
|
||||
if(tag != null){
|
||||
this.oilTank.readFromNBT(tag);
|
||||
}
|
||||
super.readSyncableNBT(compound, type);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue