Update to forge and fuck up the cables? Not sure :P
This commit is contained in:
parent
bc5c30dd3a
commit
6498bd1974
16 changed files with 91 additions and 108 deletions
|
@ -1,13 +1,13 @@
|
|||
package techreborn.utils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.util.text.TextFormatting;
|
||||
import net.minecraftforge.event.entity.player.ItemTooltipEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
import techreborn.init.ModBlocks;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* Created by Mark on 23/03/2016.
|
||||
*/
|
||||
|
@ -28,10 +28,10 @@ public class StackWIPHandler
|
|||
@SubscribeEvent
|
||||
public void toolTip(ItemTooltipEvent event)
|
||||
{
|
||||
Block block = Block.getBlockFromItem(event.itemStack.getItem());
|
||||
Block block = Block.getBlockFromItem(event.getItemStack().getItem());
|
||||
if (block != null && wipBlocks.contains(block))
|
||||
{
|
||||
event.toolTip.add(TextFormatting.RED + "WIP Coming Soon");
|
||||
event.getToolTip().add(TextFormatting.RED + "WIP Coming Soon");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue