From ee85dd3ba8ea86bfba9bfe4a4eb116429952cf19 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 18 Nov 2016 06:40:08 +0100 Subject: [PATCH] Fix a crash with the laser relay Closes #371 --- .../ellpeck/actuallyadditions/mod/blocks/BlockLaserRelay.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockLaserRelay.java b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockLaserRelay.java index 0b95a4b38..e3471792e 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockLaserRelay.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockLaserRelay.java @@ -42,6 +42,8 @@ import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.entity.player.PlayerInteractEvent; import net.minecraftforge.fml.common.eventhandler.Event; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; +import net.minecraftforge.fml.relauncher.Side; +import net.minecraftforge.fml.relauncher.SideOnly; public class BlockLaserRelay extends BlockContainerBase implements IHudDisplay{ @@ -185,6 +187,7 @@ public class BlockLaserRelay extends BlockContainerBase implements IHudDisplay{ } @Override + @SideOnly(Side.CLIENT) public void displayHud(Minecraft minecraft, EntityPlayer player, ItemStack stack, RayTraceResult posHit, ScaledResolution resolution){ if(posHit != null && posHit.getBlockPos() != null && minecraft.theWorld != null){ TileEntity tile = minecraft.theWorld.getTileEntity(posHit.getBlockPos());