mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
fix dedi server crash on block highlight event
This commit is contained in:
1 parent
8083984a92
commit
1abc4044b6
1 file changed
+3
@@ -52,6 +52,8 @@ import net.minecraftforge.common.capabilities.ICapabilityProvider;
|
||||
import net.minecraftforge.event.AttachCapabilitiesEvent;
|
||||
import net.minecraftforge.fml.common.event.FMLInterModComms;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
|
||||
@MCMPAddon
|
||||
public class MultipartMekanism implements IMCMPAddon
|
||||
@@ -233,6 +235,7 @@ public class MultipartMekanism implements IMCMPAddon
|
||||
|
||||
//No idea why mcmultipart doesnt do this itself...
|
||||
@SubscribeEvent
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void drawBlockHighlightEvent(DrawMultipartHighlightEvent ev){
|
||||
IBlockState state = ev.getPartInfo().getState();
|
||||
if (state.getBlock() == MekanismBlocks.GlowPanel || state.getBlock() == MekanismBlocks.Transmitter)
|
||||
|
||||
Reference in new issue
Block a user