From 914aa3423bfd006f84c34905c3629babee9a4d09 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Fri, 8 Jun 2018 18:39:16 +0100 Subject: [PATCH] Fixes #1533 --- src/main/java/techreborn/tiles/TileAlarm.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/techreborn/tiles/TileAlarm.java b/src/main/java/techreborn/tiles/TileAlarm.java index 707b4f0b0..7f26e068a 100644 --- a/src/main/java/techreborn/tiles/TileAlarm.java +++ b/src/main/java/techreborn/tiles/TileAlarm.java @@ -24,13 +24,16 @@ package techreborn.tiles; +import net.minecraft.block.state.IBlockState; import net.minecraft.client.resources.I18n; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ITickable; import net.minecraft.util.SoundCategory; +import net.minecraft.util.math.BlockPos; import net.minecraft.util.text.TextComponentString; import net.minecraft.util.text.TextFormatting; +import net.minecraft.world.World; import reborncore.common.util.ChatUtils; import techreborn.blocks.BlockAlarm; import techreborn.init.ModSounds; @@ -87,4 +90,9 @@ public class TileAlarm extends TileEntity implements ITickable { ChatUtils.sendNoSpamMessages(MessageIDs.alarmID, new TextComponentString(TextFormatting.GRAY + I18n.format("techreborn.message.alarm") + " " + "Alarm " + selectedSound)); } } + + @Override + public boolean shouldRefresh(World world, BlockPos pos, IBlockState oldState, IBlockState newSate) { + return false; + } }