Recipe for alarm and misc fixes

This commit is contained in:
Dimmerworld 2018-01-03 15:17:20 +11:00
parent 2177b72e41
commit 86d37514a7
3 changed files with 3 additions and 1 deletions

View file

@ -13,6 +13,7 @@ int selectedSound;
public void update() {
if (!world.isRemote && world.getTotalWorldTime() % 25 == 0 && world.isBlockPowered(getPos())) {
BlockAlarm.setActive(true, world, pos);
world.playSound(null, getPos().getX(), getPos().getY(), getPos().getZ(), ModSounds.ALARM, SoundCategory.BLOCKS, 4F, 1F);
state = true;
} else if(!world.isRemote && world.getTotalWorldTime() % 25 == 0 ) {
BlockAlarm.setActive(false, world, pos);