Call super
This commit is contained in:
@@ -564,6 +564,8 @@ public class TileController extends TileBase implements INetworkMaster, IEnergyR
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void readFromNBT(NBTTagCompound tag) {
|
public void readFromNBT(NBTTagCompound tag) {
|
||||||
|
super.readFromNBT(tag);
|
||||||
|
|
||||||
energy.readFromNBT(tag);
|
energy.readFromNBT(tag);
|
||||||
|
|
||||||
if (tag.hasKey(RedstoneMode.NBT)) {
|
if (tag.hasKey(RedstoneMode.NBT)) {
|
||||||
@@ -594,6 +596,8 @@ public class TileController extends TileBase implements INetworkMaster, IEnergyR
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public NBTTagCompound writeToNBT(NBTTagCompound tag) {
|
public NBTTagCompound writeToNBT(NBTTagCompound tag) {
|
||||||
|
super.writeToNBT(tag);
|
||||||
|
|
||||||
energy.writeToNBT(tag);
|
energy.writeToNBT(tag);
|
||||||
|
|
||||||
tag.setInteger(RedstoneMode.NBT, redstoneMode.id);
|
tag.setInteger(RedstoneMode.NBT, redstoneMode.id);
|
||||||
|
Reference in New Issue
Block a user