mirror of
https://github.com/GTNewHorizons/WirelessCraftingTerminal.git
synced 2026-11-19 11:49:18 +00:00
assign
This commit is contained in:
1 parent
0ea8f5fb41
commit
9f39b6bd16
1 file changed
+3
-6
@@ -113,9 +113,8 @@ public class GuiCraftAmount extends WCTBaseGui {
|
||||
String out = this.amountToCraft.getText();
|
||||
|
||||
double resultD = Calculator.conversion(out);
|
||||
int resultI;
|
||||
|
||||
resultI = roundDouble(resultD);
|
||||
int resultI = roundDouble(resultD);
|
||||
|
||||
this.next.enabled = resultI > 0;
|
||||
} catch (final NumberFormatException e) {
|
||||
@@ -148,9 +147,8 @@ public class GuiCraftAmount extends WCTBaseGui {
|
||||
|
||||
if (btn == this.next && btn.enabled) {
|
||||
double resultD = Calculator.conversion(this.amountToCraft.getText());
|
||||
int resultI;
|
||||
|
||||
resultI = roundDouble(resultD);
|
||||
int resultI = roundDouble(resultD);
|
||||
|
||||
NetworkHandler.instance.sendToServer(new PacketCraftRequest(resultI, isShiftKeyDown()));
|
||||
}
|
||||
@@ -173,9 +171,8 @@ public class GuiCraftAmount extends WCTBaseGui {
|
||||
String out = this.amountToCraft.getText();
|
||||
|
||||
double resultD = Calculator.conversion(out);
|
||||
int resultI;
|
||||
|
||||
resultI = roundDouble(resultD);
|
||||
int resultI = roundDouble(resultD);
|
||||
|
||||
if (resultI == 1 && i > 1) {
|
||||
resultI = 0;
|
||||
|
||||
Reference in new issue
Block a user