Skip to content

Commit

Permalink
Do not allow MTEs to be removed from the creative search tab.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorbatron committed Jan 6, 2025
1 parent e8c7fd7 commit 15559af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/gregtech/api/metatileentity/MetaTileEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -1689,6 +1689,11 @@ 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!",
new IllegalArgumentException());
return;
}
if (!creativeTabs.contains(creativeTab)) {
GTLog.logger.error("{} is not in the creative tab {}.", this, creativeTab.tabLabel,
new IllegalArgumentException());
Expand Down

0 comments on commit 15559af

Please sign in to comment.