mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-21 20:52:11 +00:00
Hide mob spawners and save states on servers without NEI
This commit is contained in:
1 parent
6d9936f64b
commit
277c8b5cc0
3 files changed
+7
-5
No files matched your search
@@ -138,7 +138,10 @@ public class ItemMobSpawner extends ItemBlock
|
||||
|
||||
@Override
|
||||
public void getSubItems(Item item, CreativeTabs tab, List list) {
|
||||
for(int i : IDtoNameMap.keySet())
|
||||
list.add(new ItemStack(item, 1, i));
|
||||
if(!NEIClientConfig.hasSMPCounterPart())
|
||||
list.add(new ItemStack(item));
|
||||
else
|
||||
for(int i : IDtoNameMap.keySet())
|
||||
list.add(new ItemStack(item, 1, i));
|
||||
}
|
||||
}
|
||||
@@ -617,7 +617,7 @@ public class LayoutManager implements IContainerInputHandler, IContainerTooltipH
|
||||
addWidget(searchField);
|
||||
}
|
||||
|
||||
if (canPerformAction("item") && visiblity.showStateButtons) {
|
||||
if (canPerformAction("item") && hasSMPCounterPart() && visiblity.showStateButtons) {
|
||||
for (int i = 0; i < 7; i++) {
|
||||
addWidget(stateButtons[i]);
|
||||
if (isStateSaved(i))
|
||||
|
||||
@@ -397,9 +397,8 @@ public class NEIClientConfig
|
||||
}
|
||||
|
||||
public static void loadState(int state) {
|
||||
if (!statesSaved[state]) {
|
||||
if (!statesSaved[state])
|
||||
return;
|
||||
}
|
||||
|
||||
NBTTagCompound statesave = global.nbt.getCompoundTag("save" + state);
|
||||
GuiContainer currentContainer = NEIClientUtils.getGuiContainer();
|
||||
|
||||
Reference in new issue
Block a user