Fixed duplication bug with autocrafting, fixes #1500

This commit is contained in:
raoulvdberge
2017-11-13 22:34:39 +01:00
parent 295cc68088
commit 0905f2fb90
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
# Refined Storage Changelog # Refined Storage Changelog
### 1.5.23
- Fixed duplication bug with autocrafting (raoulvdberge)
### 1.5.22 ### 1.5.22
- Added oredict, blocking, processing, ore inputs access to OpenComputers API (raoulvdberge) - Added oredict, blocking, processing, ore inputs access to OpenComputers API (raoulvdberge)
- Added shortcut to clear Grid crafting matrix (CTRL+X) (raoulvdberge) - Added shortcut to clear Grid crafting matrix (CTRL+X) (raoulvdberge)

View File

@@ -63,7 +63,7 @@ public class NetworkNodeCrafter extends NetworkNode implements ICraftingPatternC
ItemStack patternStack = patterns.getStackInSlot(i); ItemStack patternStack = patterns.getStackInSlot(i);
if (!patternStack.isEmpty()) { if (!patternStack.isEmpty()) {
ICraftingPattern pattern = ((ICraftingPatternProvider) patternStack.getItem()).create(world, patternStack, this); ICraftingPattern pattern = ((ICraftingPatternProvider) patternStack.getItem()).create(world, patternStack.copy(), this);
if (pattern.isValid()) { if (pattern.isValid()) {
actualPatterns.add(pattern); actualPatterns.add(pattern);