1696 - find + replace pass

This commit is contained in:
modmuss50 2019-01-13 16:51:50 +00:00
parent 368e2d48df
commit b6312b124a
94 changed files with 418 additions and 419 deletions

View file

@ -60,20 +60,20 @@ public class TileAlarm extends TileEntity
// TileEntity
@Override
public NBTTagCompound writeToNBT(NBTTagCompound compound) {
public NBTTagCompound write(NBTTagCompound compound) {
if (compound == null) {
compound = new NBTTagCompound();
}
compound.setInteger("selectedSound", this.selectedSound);
return super.writeToNBT(compound);
compound.setInt("selectedSound", this.selectedSound);
return super.write(compound);
}
@Override
public void readFromNBT(NBTTagCompound compound) {
public void read(NBTTagCompound compound) {
if (compound != null && compound.hasKey("selectedSound")) {
selectedSound = compound.getInteger("selectedSound");
selectedSound = compound.getInt("selectedSound");
}
super.readFromNBT(compound);
super.read(compound);
}
@Override