Removed crafting task limit in crafting start GUI

This commit is contained in:
Raoul Van den Berge
2016-09-14 19:12:55 +02:00
parent 97cfc0dc6b
commit a2144ef4fd
4 changed files with 5 additions and 7 deletions

View File

@@ -2,6 +2,7 @@
### 1.0.2
- Fixed processing patterns not handling item insertion sometimes (raoulvdberge)
- Removed crafting task limit in crafting start GUI (raoulvdberge)
### 1.0.1
- Fixed advanced tooltips showing in Grid when not configured to do so (raoulvdberge)

View File

@@ -1,4 +1,4 @@
# Refined Storage [![Build Status](https://travis-ci.org/raoulvdberge/refinedstorage.svg?branch=mc1.10)](https://travis-ci.org/raoulvdberge/refinedstorage) [![Download](https://api.bintray.com/packages/raoulvdberge/dev/refinedstorage/images/download.svg)](https://bintray.com/raoulvdberge/dev/refinedstorage/_latestVersion) ![CurseForge](http://cf.way2muchnoise.eu/full_243076_downloads.svg)
# Refined Storage [![Build Status](https://travis-ci.org/raoulvdberge/refinedstorage.svg?branch=mc1.10)](https://travis-ci.org/raoulvdberge/refinedstorage) [![Download](https://api.bintray.com/packages/raoulvdberge/dev/refinedstorage/images/download.svg)](https://bintray.com/raoulvdberge/dev/refinedstorage/_latestVersion) [![CurseForge](http://cf.way2muchnoise.eu/full_243076_downloads.svg)](http://minecraft.curseforge.com/projects/refined-storage)
A Minecraft mod all about storage.

View File

@@ -12,8 +12,6 @@ import refinedstorage.api.network.grid.IItemGridHandler;
import refinedstorage.api.storage.CompareUtils;
public class ItemGridHandler implements IItemGridHandler {
public static final int MAX_CRAFTING_PER_REQUEST = 500;
private INetworkMaster network;
public ItemGridHandler(INetworkMaster network) {
@@ -118,7 +116,7 @@ public class ItemGridHandler implements IItemGridHandler {
@Override
public void onCraftingRequested(int hash, int quantity) {
if (quantity <= 0 || quantity > MAX_CRAFTING_PER_REQUEST) {
if (quantity <= 0) {
return;
}

View File

@@ -7,7 +7,6 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.fml.client.FMLClientHandler;
import org.lwjgl.input.Keyboard;
import refinedstorage.RefinedStorage;
import refinedstorage.apiimpl.network.grid.ItemGridHandler;
import refinedstorage.container.ContainerCraftingSettings;
import refinedstorage.gui.GuiBase;
import refinedstorage.gui.grid.stack.ClientStackItem;
@@ -111,7 +110,7 @@ public class GuiCraftingSettings extends GuiBase {
int newAmount = Integer.parseInt(incrementButton.displayString);
newAmount = Math.min(Math.max(DEFAULT_AMOUNT, oldAmount + newAmount), ItemGridHandler.MAX_CRAFTING_PER_REQUEST);
newAmount = Math.max(DEFAULT_AMOUNT, oldAmount + newAmount);
amountField.setText(String.valueOf(newAmount));
@@ -124,7 +123,7 @@ public class GuiCraftingSettings extends GuiBase {
private void startRequest() {
Integer quantity = Ints.tryParse(amountField.getText());
if (quantity != null && quantity > 0 && quantity <= ItemGridHandler.MAX_CRAFTING_PER_REQUEST) {
if (quantity != null && quantity > 0) {
RefinedStorage.INSTANCE.network.sendToServer(new MessageGridCraftingStart(stack.getHash(), quantity));
close();