added backwards compatibility for block rotation
This commit is contained in:
parent
148715111f
commit
47a8ccadcb
1 changed files with 5 additions and 1 deletions
|
@ -56,7 +56,11 @@ public abstract class TileMachineBase extends TileEntity {
|
|||
@Override
|
||||
public void readFromNBT(NBTTagCompound tagCompound) {
|
||||
super.readFromNBT(tagCompound);
|
||||
rotation = tagCompound.getInteger("rotation");
|
||||
if(tagCompound.hasKey("meta") && !tagCompound.hasKey("rotation")){
|
||||
rotation = tagCompound.getInteger("meta");
|
||||
} else {
|
||||
rotation = tagCompound.getInteger("rotation");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue