mirror of
https://github.com/GTNewHorizons/JustEnoughCalculation.git
synced 2026-11-21 20:42:19 +00:00
fix #7
This commit is contained in:
1 parent
9b5c02cbc9
commit
66a73a14e6
4 files changed
+7
-8
No files matched your search
@@ -46,7 +46,7 @@ public class JustEnoughCalculation{
|
||||
public static class Reference {
|
||||
public static final String MODID = "je_calculation";
|
||||
public static final String MODNAME = "Just Enough Calculation";
|
||||
public static final String VERSION = "0.3.1";
|
||||
public static final String VERSION = "0.3.2";
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
|
||||
+4
-5
@@ -47,6 +47,7 @@ public class GuiCalculator extends GuiTooltipScreen{
|
||||
int total = 0;
|
||||
EnumMode mode = EnumMode.INPUT;
|
||||
ItemStack buffer;
|
||||
boolean init = false;
|
||||
|
||||
public enum EnumMode {
|
||||
INPUT, PROCEDURE, OUTPUT, CATALYST;
|
||||
@@ -114,6 +115,7 @@ public class GuiCalculator extends GuiTooltipScreen{
|
||||
}
|
||||
textFieldAmount.setText(ItemStackWrapper.NBT.getString(itemStack, "text"));
|
||||
mode = EnumMode.fromInt(ItemStackWrapper.NBT.getInt(calculatorItem, "mode"));
|
||||
init = true;
|
||||
onOpen();
|
||||
if(!JustEnoughCalculation.JECConfig.initialized){
|
||||
ArrayList<String> idents = new ArrayList<>();
|
||||
@@ -363,14 +365,11 @@ public class GuiCalculator extends GuiTooltipScreen{
|
||||
|
||||
public void onOpen(){
|
||||
if(inventorySlots.getSlot(0).getStack() != null){
|
||||
//mode = EnumMode.INPUT;
|
||||
refreshRecipe();
|
||||
}
|
||||
if(init){
|
||||
updateLayout();
|
||||
}
|
||||
/*costRecord = null;
|
||||
if(buttonRight != null){
|
||||
updateLayout();
|
||||
}*/
|
||||
}
|
||||
|
||||
protected void fillSlotsWith(List<ItemStack> itemStacks, int start){
|
||||
|
||||
Reference in new issue
Block a user