Some random fixes, 959 errors

This commit is contained in:
modmuss50 2019-02-21 18:11:55 +00:00
parent 0975b4353b
commit f6a79ce579
37 changed files with 131 additions and 186 deletions

View file

@ -83,8 +83,8 @@ public class TileAlarm extends TileEntity
// ITickable
@Override
public void update() {
if (!world.isRemote && world.getTotalWorldTime() % 25 == 0 && world.isBlockPowered(getPos())) {
public void tick() {
if (!world.isRemote && world.getGameTime() % 25 == 0 && world.isBlockPowered(getPos())) {
BlockAlarm.setActive(true, world, pos);
switch (selectedSound) {
case 1:
@ -98,7 +98,7 @@ public class TileAlarm extends TileEntity
break;
}
} else if (!world.isRemote && world.getTotalWorldTime() % 25 == 0) {
} else if (!world.isRemote && world.getGameTime() % 25 == 0) {
BlockAlarm.setActive(false, world, pos);
}
}