fix more reformatter stuff
This commit is contained in:
@@ -65,7 +65,8 @@ public abstract class ContainerBase extends Container
|
|||||||
if (clickedButton == 2 || player.inventory.getItemStack() == null)
|
if (clickedButton == 2 || player.inventory.getItemStack() == null)
|
||||||
{
|
{
|
||||||
slot.putStack(null);
|
slot.putStack(null);
|
||||||
} else if (slot.isItemValid(player.inventory.getItemStack()))
|
}
|
||||||
|
else if (slot.isItemValid(player.inventory.getItemStack()))
|
||||||
{
|
{
|
||||||
slot.putStack(player.inventory.getItemStack().copy());
|
slot.putStack(player.inventory.getItemStack().copy());
|
||||||
}
|
}
|
||||||
|
@@ -24,7 +24,8 @@ public class ContainerDrive extends ContainerBase
|
|||||||
{
|
{
|
||||||
x = 71;
|
x = 71;
|
||||||
y += 18;
|
y += 18;
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
x += 18;
|
x += 18;
|
||||||
}
|
}
|
||||||
@@ -50,7 +51,8 @@ public class ContainerDrive extends ContainerBase
|
|||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
} else if (!mergeItemStack(stack, 0, 8, false))
|
}
|
||||||
|
else if (!mergeItemStack(stack, 0, 8, false))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -58,7 +60,8 @@ public class ContainerDrive extends ContainerBase
|
|||||||
if (stack.stackSize == 0)
|
if (stack.stackSize == 0)
|
||||||
{
|
{
|
||||||
slot.putStack(null);
|
slot.putStack(null);
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
slot.onSlotChanged();
|
slot.onSlotChanged();
|
||||||
}
|
}
|
||||||
|
@@ -44,7 +44,8 @@ public class ContainerSolderer extends ContainerBase
|
|||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
} else if (!mergeItemStack(stack, 0, 3, false))
|
}
|
||||||
|
else if (!mergeItemStack(stack, 0, 3, false))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -52,7 +53,8 @@ public class ContainerSolderer extends ContainerBase
|
|||||||
if (stack.stackSize == 0)
|
if (stack.stackSize == 0)
|
||||||
{
|
{
|
||||||
slot.putStack(null);
|
slot.putStack(null);
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
slot.onSlotChanged();
|
slot.onSlotChanged();
|
||||||
}
|
}
|
||||||
|
@@ -39,7 +39,8 @@ public class ContainerWirelessTransmitter extends ContainerBase
|
|||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
} else if (!mergeItemStack(stack, 0, 3, false))
|
}
|
||||||
|
else if (!mergeItemStack(stack, 0, 3, false))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -47,7 +48,8 @@ public class ContainerWirelessTransmitter extends ContainerBase
|
|||||||
if (stack.stackSize == 0)
|
if (stack.stackSize == 0)
|
||||||
{
|
{
|
||||||
slot.putStack(null);
|
slot.putStack(null);
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
slot.onSlotChanged();
|
slot.onSlotChanged();
|
||||||
}
|
}
|
||||||
|
@@ -75,7 +75,8 @@ public class GuiDetector extends GuiBase
|
|||||||
{
|
{
|
||||||
StorageCraft.NETWORK.sendToServer(new MessageDetectorAmountUpdate(detector, result));
|
StorageCraft.NETWORK.sendToServer(new MessageDetectorAmountUpdate(detector, result));
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
super.keyTyped(character, keyCode);
|
super.keyTyped(character, keyCode);
|
||||||
}
|
}
|
||||||
|
@@ -133,7 +133,8 @@ public class GuiGrid extends GuiBase
|
|||||||
if (grid.getType() == EnumGridType.CRAFTING)
|
if (grid.getType() == EnumGridType.CRAFTING)
|
||||||
{
|
{
|
||||||
bindTexture("gui/crafting_grid.png");
|
bindTexture("gui/crafting_grid.png");
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
bindTexture("gui/grid.png");
|
bindTexture("gui/grid.png");
|
||||||
}
|
}
|
||||||
@@ -306,13 +307,16 @@ public class GuiGrid extends GuiBase
|
|||||||
if (isHoveringOverSlot() && container.getPlayer().inventory.getItemStack() != null)
|
if (isHoveringOverSlot() && container.getPlayer().inventory.getItemStack() != null)
|
||||||
{
|
{
|
||||||
StorageCraft.NETWORK.sendToServer(new MessageStoragePush(controller.getPos().getX(), controller.getPos().getY(), controller.getPos().getZ(), -1, clickedButton == 1));
|
StorageCraft.NETWORK.sendToServer(new MessageStoragePush(controller.getPos().getX(), controller.getPos().getY(), controller.getPos().getZ(), -1, clickedButton == 1));
|
||||||
} else if (isHoveringOverValidSlot() && container.getPlayer().inventory.getItemStack() == null)
|
}
|
||||||
|
else if (isHoveringOverValidSlot() && container.getPlayer().inventory.getItemStack() == null)
|
||||||
{
|
{
|
||||||
StorageCraft.NETWORK.sendToServer(new MessageStoragePull(controller.getPos().getX(), controller.getPos().getY(), controller.getPos().getZ(), hoveringId, clickedButton == 1, Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)));
|
StorageCraft.NETWORK.sendToServer(new MessageStoragePull(controller.getPos().getX(), controller.getPos().getY(), controller.getPos().getZ(), hoveringId, clickedButton == 1, Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)));
|
||||||
} else if (clickedClear)
|
}
|
||||||
|
else if (clickedClear)
|
||||||
{
|
{
|
||||||
StorageCraft.NETWORK.sendToServer(new MessageGridCraftingClear(grid));
|
StorageCraft.NETWORK.sendToServer(new MessageGridCraftingClear(grid));
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
for (Slot slot : container.getPlayerInventorySlots())
|
for (Slot slot : container.getPlayerInventorySlots())
|
||||||
{
|
{
|
||||||
@@ -338,7 +342,8 @@ public class GuiGrid extends GuiBase
|
|||||||
{
|
{
|
||||||
if (!checkHotbarKeys(keyCode) && searchField.textboxKeyTyped(character, keyCode))
|
if (!checkHotbarKeys(keyCode) && searchField.textboxKeyTyped(character, keyCode))
|
||||||
{
|
{
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
super.keyTyped(character, keyCode);
|
super.keyTyped(character, keyCode);
|
||||||
}
|
}
|
||||||
|
@@ -27,7 +27,8 @@ public class SideButtonCompare extends SideButton
|
|||||||
if ((setting.getCompare() & mask) == mask)
|
if ((setting.getCompare() & mask) == mask)
|
||||||
{
|
{
|
||||||
builder.append(gui.t("misc.storagecraft:yes"));
|
builder.append(gui.t("misc.storagecraft:yes"));
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
builder.append(gui.t("misc.storagecraft:no"));
|
builder.append(gui.t("misc.storagecraft:no"));
|
||||||
}
|
}
|
||||||
|
@@ -40,7 +40,8 @@ public class InventorySimple implements IInventory
|
|||||||
if (stack.stackSize <= amount)
|
if (stack.stackSize <= amount)
|
||||||
{
|
{
|
||||||
setInventorySlotContents(slot, null);
|
setInventorySlotContents(slot, null);
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
stack = stack.splitStack(amount);
|
stack = stack.splitStack(amount);
|
||||||
|
|
||||||
|
@@ -44,7 +44,8 @@ public class ItemStorageCell extends ItemBase
|
|||||||
if (getCapacity(cell) == -1)
|
if (getCapacity(cell) == -1)
|
||||||
{
|
{
|
||||||
list.add(String.format(StatCollector.translateToLocal("misc.storagecraft:storage_cell_stored"), getStored(cell)));
|
list.add(String.format(StatCollector.translateToLocal("misc.storagecraft:storage_cell_stored"), getStored(cell)));
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
list.add(String.format(StatCollector.translateToLocal("misc.storagecraft:storage_cell_stored_capacity"), getStored(cell), getCapacity(cell)));
|
list.add(String.format(StatCollector.translateToLocal("misc.storagecraft:storage_cell_stored_capacity"), getStored(cell), getCapacity(cell)));
|
||||||
}
|
}
|
||||||
|
@@ -76,23 +76,28 @@ public class ItemWirelessGrid extends ItemBase
|
|||||||
if (grid == null)
|
if (grid == null)
|
||||||
{
|
{
|
||||||
player.addChatComponentMessage(new ChatComponentText(StatCollector.translateToLocal("misc.storagecraft:wireless_grid.no_grid." + stack.getItemDamage())));
|
player.addChatComponentMessage(new ChatComponentText(StatCollector.translateToLocal("misc.storagecraft:wireless_grid.no_grid." + stack.getItemDamage())));
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
player.openGui(StorageCraft.INSTANCE, StorageCraftGUI.GRID, world, grid.getPos().getX(), grid.getPos().getY(), grid.getPos().getZ());
|
player.openGui(StorageCraft.INSTANCE, StorageCraftGUI.GRID, world, grid.getPos().getX(), grid.getPos().getY(), grid.getPos().getZ());
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
player.addChatComponentMessage(new ChatComponentText(StatCollector.translateToLocal("misc.storagecraft:wireless_grid.not_working")));
|
player.addChatComponentMessage(new ChatComponentText(StatCollector.translateToLocal("misc.storagecraft:wireless_grid.not_working")));
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
player.addChatComponentMessage(new ChatComponentText(StatCollector.translateToLocal("misc.storagecraft:wireless_grid.not_found")));
|
player.addChatComponentMessage(new ChatComponentText(StatCollector.translateToLocal("misc.storagecraft:wireless_grid.not_found")));
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
player.addChatComponentMessage(new ChatComponentText(StatCollector.translateToLocal("misc.storagecraft:wireless_grid.out_of_range")));
|
player.addChatComponentMessage(new ChatComponentText(StatCollector.translateToLocal("misc.storagecraft:wireless_grid.out_of_range")));
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
player.addChatComponentMessage(new ChatComponentText(StatCollector.translateToLocal("misc.storagecraft:wireless_grid.not_set." + stack.getItemDamage())));
|
player.addChatComponentMessage(new ChatComponentText(StatCollector.translateToLocal("misc.storagecraft:wireless_grid.not_set." + stack.getItemDamage())));
|
||||||
}
|
}
|
||||||
|
@@ -89,7 +89,8 @@ public class MessageStoragePull extends MessageHandlerPlayerToServer<MessageStor
|
|||||||
{
|
{
|
||||||
controller.push(took);
|
controller.push(took);
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
player.inventory.setItemStack(took);
|
player.inventory.setItemStack(took);
|
||||||
player.updateHeldItem();
|
player.updateHeldItem();
|
||||||
|
@@ -68,7 +68,8 @@ public class MessageStoragePush extends MessageHandlerPlayerToServer<MessageStor
|
|||||||
{
|
{
|
||||||
stack.stackSize = 1;
|
stack.stackSize = 1;
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
stack = player.inventory.getStackInSlot(message.slot);
|
stack = player.inventory.getStackInSlot(message.slot);
|
||||||
}
|
}
|
||||||
@@ -89,13 +90,15 @@ public class MessageStoragePush extends MessageHandlerPlayerToServer<MessageStor
|
|||||||
{
|
{
|
||||||
player.inventory.setItemStack(null);
|
player.inventory.setItemStack(null);
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
player.inventory.setItemStack(null);
|
player.inventory.setItemStack(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
player.updateHeldItem();
|
player.updateHeldItem();
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
player.inventory.setInventorySlotContents(message.slot, null);
|
player.inventory.setInventorySlotContents(message.slot, null);
|
||||||
}
|
}
|
||||||
|
@@ -58,7 +58,8 @@ public class CableModel extends ModelBase
|
|||||||
if (cable.getItemDamage() == 1)
|
if (cable.getItemDamage() == 1)
|
||||||
{
|
{
|
||||||
Minecraft.getMinecraft().renderEngine.bindTexture(CABLE_UNPOWERED_RESOURCE);
|
Minecraft.getMinecraft().renderEngine.bindTexture(CABLE_UNPOWERED_RESOURCE);
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
Minecraft.getMinecraft().renderEngine.bindTexture(CABLE_RESOURCE);
|
Minecraft.getMinecraft().renderEngine.bindTexture(CABLE_RESOURCE);
|
||||||
}
|
}
|
||||||
@@ -81,11 +82,13 @@ public class CableModel extends ModelBase
|
|||||||
if (cable.isPowered())
|
if (cable.isPowered())
|
||||||
{
|
{
|
||||||
Minecraft.getMinecraft().renderEngine.bindTexture(CABLE_POWERED_RESOURCE);
|
Minecraft.getMinecraft().renderEngine.bindTexture(CABLE_POWERED_RESOURCE);
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
Minecraft.getMinecraft().renderEngine.bindTexture(CABLE_UNPOWERED_RESOURCE);
|
Minecraft.getMinecraft().renderEngine.bindTexture(CABLE_UNPOWERED_RESOURCE);
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
Minecraft.getMinecraft().renderEngine.bindTexture(CABLE_RESOURCE);
|
Minecraft.getMinecraft().renderEngine.bindTexture(CABLE_RESOURCE);
|
||||||
}
|
}
|
||||||
|
@@ -85,10 +85,12 @@ public class TileCable extends TileBase
|
|||||||
machines.add((TileMachine) tile);
|
machines.add((TileMachine) tile);
|
||||||
|
|
||||||
visited.add(newPos);
|
visited.add(newPos);
|
||||||
} else if (tile instanceof TileCable && ((TileCable) tile).isEnabled())
|
}
|
||||||
|
else if (tile instanceof TileCable && ((TileCable) tile).isEnabled())
|
||||||
{
|
{
|
||||||
((TileCable) tile).addMachines(visited, machines, controller);
|
((TileCable) tile).addMachines(visited, machines, controller);
|
||||||
} else if (tile instanceof TileController && !controller.getPos().equals(newPos))
|
}
|
||||||
|
else if (tile instanceof TileController && !controller.getPos().equals(newPos))
|
||||||
{
|
{
|
||||||
worldObj.createExplosion(null, pos.getX(), pos.getY(), pos.getZ(), 4.5f, true);
|
worldObj.createExplosion(null, pos.getX(), pos.getY(), pos.getZ(), 4.5f, true);
|
||||||
}
|
}
|
||||||
|
@@ -49,7 +49,8 @@ public class TileController extends TileBase implements IEnergyReceiver, INetwor
|
|||||||
if (!isActive())
|
if (!isActive())
|
||||||
{
|
{
|
||||||
disconnectAll();
|
disconnectAll();
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
visitedCables.clear();
|
visitedCables.clear();
|
||||||
|
|
||||||
@@ -246,7 +247,8 @@ public class TileController extends TileBase implements IEnergyReceiver, INetwor
|
|||||||
if (newStack == null)
|
if (newStack == null)
|
||||||
{
|
{
|
||||||
newStack = took;
|
newStack = took;
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
newStack.stackSize += took.stackSize;
|
newStack.stackSize += took.stackSize;
|
||||||
}
|
}
|
||||||
|
@@ -83,15 +83,18 @@ public class TileDetector extends TileMachine implements IInventory, ISidedInven
|
|||||||
if (mode == MODE_UNDER && amount != 0)
|
if (mode == MODE_UNDER && amount != 0)
|
||||||
{
|
{
|
||||||
providesPower = true;
|
providesPower = true;
|
||||||
} else if (mode == MODE_EQUAL && amount == 0)
|
}
|
||||||
|
else if (mode == MODE_EQUAL && amount == 0)
|
||||||
{
|
{
|
||||||
providesPower = true;
|
providesPower = true;
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
providesPower = false;
|
providesPower = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
providesPower = false;
|
providesPower = false;
|
||||||
}
|
}
|
||||||
|
@@ -73,10 +73,12 @@ public class TileExporter extends TileMachine implements IInventory, ISidedInven
|
|||||||
{
|
{
|
||||||
getController().push(took);
|
getController().push(took);
|
||||||
}
|
}
|
||||||
} else if (InventoryUtils.canPushToInventory(connectedInventory, took))
|
}
|
||||||
|
else if (InventoryUtils.canPushToInventory(connectedInventory, took))
|
||||||
{
|
{
|
||||||
InventoryUtils.pushToInventory(connectedInventory, took);
|
InventoryUtils.pushToInventory(connectedInventory, took);
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
getController().push(took);
|
getController().push(took);
|
||||||
}
|
}
|
||||||
|
@@ -69,7 +69,8 @@ public class TileImporter extends TileMachine implements IInventory, ISidedInven
|
|||||||
connectedInventory.setInventorySlotContents(currentSlot, null);
|
connectedInventory.setInventorySlotContents(currentSlot, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (getController().push(slot.copy()))
|
}
|
||||||
|
else if (getController().push(slot.copy()))
|
||||||
{
|
{
|
||||||
connectedInventory.setInventorySlotContents(currentSlot, null);
|
connectedInventory.setInventorySlotContents(currentSlot, null);
|
||||||
}
|
}
|
||||||
@@ -104,7 +105,8 @@ public class TileImporter extends TileMachine implements IInventory, ISidedInven
|
|||||||
if (mode == MODE_WHITELIST)
|
if (mode == MODE_WHITELIST)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
} else if (mode == MODE_BLACKLIST)
|
}
|
||||||
|
else if (mode == MODE_BLACKLIST)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@@ -41,14 +41,16 @@ public class TileSolderer extends TileMachine implements IInventory, ISidedInven
|
|||||||
if (newRecipe == null)
|
if (newRecipe == null)
|
||||||
{
|
{
|
||||||
reset();
|
reset();
|
||||||
} else if (newRecipe != recipe && inventory.getStackInSlot(3) == null)
|
}
|
||||||
|
else if (newRecipe != recipe && inventory.getStackInSlot(3) == null)
|
||||||
{
|
{
|
||||||
recipe = newRecipe;
|
recipe = newRecipe;
|
||||||
progress = 0;
|
progress = 0;
|
||||||
working = true;
|
working = true;
|
||||||
|
|
||||||
markDirty();
|
markDirty();
|
||||||
} else if (working)
|
}
|
||||||
|
else if (working)
|
||||||
{
|
{
|
||||||
progress++;
|
progress++;
|
||||||
|
|
||||||
|
@@ -40,7 +40,8 @@ public class TileWirelessTransmitter extends TileMachine implements IInventory
|
|||||||
{
|
{
|
||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
} else if (inventory.getStackInSlot(0) != null)
|
}
|
||||||
|
else if (inventory.getStackInSlot(0) != null)
|
||||||
{
|
{
|
||||||
inventory.decrStackSize(0, 1);
|
inventory.decrStackSize(0, 1);
|
||||||
|
|
||||||
|
@@ -14,10 +14,12 @@ public class SoldererRecipeCraftingGrid implements ISoldererRecipe
|
|||||||
if (row == 0)
|
if (row == 0)
|
||||||
{
|
{
|
||||||
return new ItemStack(StorageCraftItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED);
|
return new ItemStack(StorageCraftItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED);
|
||||||
} else if (row == 1)
|
}
|
||||||
|
else if (row == 1)
|
||||||
{
|
{
|
||||||
return new ItemStack(StorageCraftBlocks.GRID, 1, 0);
|
return new ItemStack(StorageCraftBlocks.GRID, 1, 0);
|
||||||
} else if (row == 2)
|
}
|
||||||
|
else if (row == 2)
|
||||||
{
|
{
|
||||||
return new ItemStack(Blocks.crafting_table);
|
return new ItemStack(Blocks.crafting_table);
|
||||||
}
|
}
|
||||||
|
@@ -14,10 +14,12 @@ public class SoldererRecipeDrive implements ISoldererRecipe
|
|||||||
if (row == 0)
|
if (row == 0)
|
||||||
{
|
{
|
||||||
return new ItemStack(StorageCraftItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED);
|
return new ItemStack(StorageCraftItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED);
|
||||||
} else if (row == 1)
|
}
|
||||||
|
else if (row == 1)
|
||||||
{
|
{
|
||||||
return new ItemStack(StorageCraftBlocks.MACHINE_CASING);
|
return new ItemStack(StorageCraftBlocks.MACHINE_CASING);
|
||||||
} else if (row == 2)
|
}
|
||||||
|
else if (row == 2)
|
||||||
{
|
{
|
||||||
return new ItemStack(Blocks.chest);
|
return new ItemStack(Blocks.chest);
|
||||||
}
|
}
|
||||||
|
@@ -28,10 +28,12 @@ public class SoldererRecipeProcessor implements ISoldererRecipe
|
|||||||
case ItemProcessor.TYPE_ADVANCED:
|
case ItemProcessor.TYPE_ADVANCED:
|
||||||
return new ItemStack(StorageCraftItems.PROCESSOR, 1, ItemProcessor.TYPE_PRINTED_ADVANCED);
|
return new ItemStack(StorageCraftItems.PROCESSOR, 1, ItemProcessor.TYPE_PRINTED_ADVANCED);
|
||||||
}
|
}
|
||||||
} else if (row == 1)
|
}
|
||||||
|
else if (row == 1)
|
||||||
{
|
{
|
||||||
return new ItemStack(Items.redstone);
|
return new ItemStack(Items.redstone);
|
||||||
} else if (row == 2)
|
}
|
||||||
|
else if (row == 2)
|
||||||
{
|
{
|
||||||
return new ItemStack(StorageCraftItems.PROCESSOR, 1, ItemProcessor.TYPE_PRINTED_SILICON);
|
return new ItemStack(StorageCraftItems.PROCESSOR, 1, ItemProcessor.TYPE_PRINTED_SILICON);
|
||||||
}
|
}
|
||||||
|
@@ -20,10 +20,12 @@ public class SoldererRecipeWirelessGrid implements ISoldererRecipe
|
|||||||
if (row == 0)
|
if (row == 0)
|
||||||
{
|
{
|
||||||
return new ItemStack(StorageCraftItems.WIRELESS_GRID_PLATE);
|
return new ItemStack(StorageCraftItems.WIRELESS_GRID_PLATE);
|
||||||
} else if (row == 1)
|
}
|
||||||
|
else if (row == 1)
|
||||||
{
|
{
|
||||||
return new ItemStack(StorageCraftBlocks.GRID, 1, type);
|
return new ItemStack(StorageCraftBlocks.GRID, 1, type);
|
||||||
} else if (row == 2)
|
}
|
||||||
|
else if (row == 2)
|
||||||
{
|
{
|
||||||
return new ItemStack(StorageCraftItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED);
|
return new ItemStack(StorageCraftItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED);
|
||||||
}
|
}
|
||||||
|
@@ -107,7 +107,8 @@ public class InventoryUtils
|
|||||||
if (slot == null)
|
if (slot == null)
|
||||||
{
|
{
|
||||||
inventory.setInventorySlotContents(i, stack);
|
inventory.setInventorySlotContents(i, stack);
|
||||||
} else if (compareStackNoQuantity(slot, stack))
|
}
|
||||||
|
else if (compareStackNoQuantity(slot, stack))
|
||||||
{
|
{
|
||||||
slot.stackSize += stack.stackSize;
|
slot.stackSize += stack.stackSize;
|
||||||
}
|
}
|
||||||
@@ -143,7 +144,8 @@ public class InventoryUtils
|
|||||||
inventory.setInventorySlotContents(i, stack);
|
inventory.setInventorySlotContents(i, stack);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
} else if (compareStackNoQuantity(slot, stack))
|
}
|
||||||
|
else if (compareStackNoQuantity(slot, stack))
|
||||||
{
|
{
|
||||||
int toAdd = toGo;
|
int toAdd = toGo;
|
||||||
|
|
||||||
@@ -175,7 +177,8 @@ public class InventoryUtils
|
|||||||
if (slot == null)
|
if (slot == null)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
} else if (compareStackNoQuantity(slot, stack))
|
}
|
||||||
|
else if (compareStackNoQuantity(slot, stack))
|
||||||
{
|
{
|
||||||
int toAdd = toGo;
|
int toAdd = toGo;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user