Update mappings + more tile work
This commit is contained in:
parent
63fe6d2ef4
commit
b864d551dd
17 changed files with 80 additions and 76 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue