Update to new forge registry system
This commit is contained in:
parent
c9f84375ac
commit
9c6e9aef64
5 changed files with 96 additions and 80 deletions
|
@ -62,7 +62,7 @@ public class StackToolTipEvent
|
|||
{
|
||||
Block block = Block.getBlockFromItem(event.getItemStack().getItem());
|
||||
if (block != null && (block instanceof BlockContainer || block instanceof ITileEntityProvider)
|
||||
&& Block.REGISTRY.getNameForObject(block).getResourceDomain().contains("techreborn"))
|
||||
&& block.getRegistryName().getResourceDomain().contains("techreborn"))
|
||||
{
|
||||
TileEntity tile = block.createTileEntity(Minecraft.getMinecraft().theWorld,
|
||||
block.getDefaultState());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue