Hide mob spawners and save states on servers without NEI

This commit is contained in:
Chicken-Bones committed 2014-12-30 21:14:59 +10:00
1 parent 6d9936f64b
commit 277c8b5cc0
3 files changed
+7 -5

No files matched your search

+5 -2
View File
@@ -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));
}
}
+1 -1
View File
@@ -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))
+1 -2
View File
@@ -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();