From 36f93b073e62f03120261c0592eb1de575aa2b87 Mon Sep 17 00:00:00 2001 From: Astoria Date: Fri, 31 Mar 2023 18:57:16 -0500 Subject: [PATCH] Set wrong one to not show up in creative --- src/main/java/net/brokenmoon/afloydwiremod/WireMod.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/brokenmoon/afloydwiremod/WireMod.java b/src/main/java/net/brokenmoon/afloydwiremod/WireMod.java index 7d85f96..a75cb94 100644 --- a/src/main/java/net/brokenmoon/afloydwiremod/WireMod.java +++ b/src/main/java/net/brokenmoon/afloydwiremod/WireMod.java @@ -4,6 +4,8 @@ import net.brokenmoon.afloydwiremod.item.ToolWiring; import net.brokenmoon.afloydwiremod.tile.ChipTile; import net.brokenmoon.afloydwiremod.item.ToolProgrammer; import net.brokenmoon.afloydwiremod.tile.RedstoneLinkTile; +import net.brokenmoon.afloydwiremod.tileentity.ChipTileEntity; +import net.brokenmoon.afloydwiremod.tileentity.RedstoneLinkTileEntity; import net.fabricmc.api.ModInitializer; import net.minecraft.src.Block; import net.minecraft.src.Item; @@ -11,6 +13,7 @@ import net.minecraft.src.Material; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import turniplabs.halplibe.helper.BlockHelper; +import turniplabs.halplibe.helper.EntityHelper; import turniplabs.halplibe.helper.ItemHelper; @@ -29,6 +32,8 @@ public class WireMod implements ModInitializer { @Override public void onInitialize() { LOGGER.info("WireMod initialized."); - LinkTileInactive.notInCreativeMenu = true; + LinkTileActive.notInCreativeMenu = true; + EntityHelper.createTileEntity(ChipTileEntity.class, "Chip"); + EntityHelper.createTileEntity(RedstoneLinkTileEntity.class, "Redstone Link"); } }