Fixed Solderer resetting progress when the inventory changes, fixes #1453

This commit is contained in:
raoulvdberge
2017-09-08 14:08:23 +02:00
parent 32e22acd7a
commit 17d4669439
2 changed files with 3 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
- Fixed crash with GUI when toggling the Grid size quickly (raoulvdberge)
- Fixed scrollbar not scrolling correctly when clicked with mouse when grid tabs are visible (raoulvdberge)
- Fixed Reader and Writers GUIs still displaying channels even if not connected (raoulvdberge)
- Fixed Solderer resetting progress when the inventory changes (raoulvdberge)
- Reader and Writer blocks now face the block you're placing it on, not the player (raoulvdberge)
- The Fortune Upgrade doesn't use NBT anymore to store the fortune level (raoulvdberge)
- Pressing SHIFT over an item in the Grid will no longer display the full unformatted count, instead, use CTRL + SHIFT and it will be displayed in the tooltip (raoulvdberge)

View File

@@ -46,8 +46,7 @@ public class NetworkNodeSolderer extends NetworkNode {
protected void onContentsChanged(int slot) {
super.onContentsChanged(slot);
recipe = API.instance().getSoldererRegistry().getRecipe(this);
progress = 0;
recipe = API.instance().getSoldererRegistry().getRecipe(ingredients);
}
};
@@ -95,6 +94,7 @@ public class NetworkNodeSolderer extends NetworkNode {
if (working) {
if (recipe == null) {
working = false;
progress = 0;
markDirty();
} else if ((result.getStackInSlot(0).isEmpty() || API.instance().getComparer().isEqualNoQuantity(recipe.getResult(), result.getStackInSlot(0))) && result.getStackInSlot(0).getCount() + recipe.getResult().getCount() <= result.getStackInSlot(0).getMaxStackSize()) {