Update mappings + more tile work

This commit is contained in:
modmuss50 2019-02-22 10:29:11 +00:00
parent 63fe6d2ef4
commit b864d551dd
17 changed files with 80 additions and 76 deletions

View file

@ -70,13 +70,13 @@ public class TileAlarm extends TileEntity
if (compound == null) {
compound = new NBTTagCompound();
}
compound.setInt("selectedSound", this.selectedSound);
compound.putInt("selectedSound", this.selectedSound);
return super.write(compound);
}
@Override
public void read(NBTTagCompound compound) {
if (compound != null && compound.hasKey("selectedSound")) {
if (compound != null && compound.contains("selectedSound")) {
selectedSound = compound.getInt("selectedSound");
}
super.read(compound);