Fix server start-up crash, #betaBuild

This commit is contained in:
modmuss50 2017-06-18 14:14:42 +01:00
parent 84cb99290d
commit 7eaef93136
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82
2 changed files with 4 additions and 1 deletions

View file

@ -81,7 +81,7 @@ configurations {
compile.extendsFrom shade compile.extendsFrom shade
} }
version = "2.4.0" version = "2.4.1"
def ENV = System.getenv() def ENV = System.getenv()
if (ENV.BUILD_NUMBER) { if (ENV.BUILD_NUMBER) {

View file

@ -32,6 +32,8 @@ import net.minecraft.nbt.NBTTagString;
import net.minecraft.util.text.TextFormatting; import net.minecraft.util.text.TextFormatting;
import net.minecraftforge.event.entity.player.ItemTooltipEvent; import net.minecraftforge.event.entity.player.ItemTooltipEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import techreborn.init.ModBlocks; import techreborn.init.ModBlocks;
import java.util.ArrayList; import java.util.ArrayList;
@ -61,6 +63,7 @@ public class StackWIPHandler {
devHeads.add(head); devHeads.add(head);
} }
@SideOnly(Side.CLIENT)
@SubscribeEvent @SubscribeEvent
public void toolTip(ItemTooltipEvent event) { public void toolTip(ItemTooltipEvent event) {
Block block = Block.getBlockFromItem(event.getItemStack().getItem()); Block block = Block.getBlockFromItem(event.getItemStack().getItem());