diff --git a/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java b/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java index 55c5ef6366c..8f2171b3a73 100644 --- a/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java +++ b/src/main/java/gregtech/api/metatileentity/MetaTileEntity.java @@ -1690,10 +1690,15 @@ public void addAdditionalCreativeTabs(CreativeTabs creativeTab) { public void removeFromCreativeTab(CreativeTabs creativeTab) { Preconditions.checkNotNull(creativeTab, "creativeTab"); if (creativeTab == CreativeTabs.SEARCH) { - GTLog.logger.error("Cannot remove MTEs from the creative search tab!", + GTLog.logger.error("Cannot remove MTEs from the creative search tab.", new IllegalArgumentException()); return; } + if (creativeTab == GTCreativeTabs.TAB_GREGTECH_MACHINES && + metaTileEntityId.getNamespace().equals(GTValues.MODID)) { + GTLog.logger.error("Cannot remove GT MTEs from the GT machines tab.", new IllegalArgumentException()); + return; + } if (!creativeTabs.contains(creativeTab)) { GTLog.logger.error("{} is not in the creative tab {}.", this, creativeTab.tabLabel, new IllegalArgumentException());