Fixed resetting a stack of patterns yields 1 blank pattern, fixes #415

This commit is contained in:
Raoul Van den Berge
2016-10-04 20:53:15 +02:00
parent 1739409a05
commit 46d108e5e1
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
# Refined Storage Changelog # Refined Storage Changelog
### 1.2
- Fixed resetting a stack of patterns yields 1 blank pattern (raoulvdberge)
### 1.1.2 ### 1.1.2
- Added recipe transfer handler for Solderer (way2muchnoise) - Added recipe transfer handler for Solderer (way2muchnoise)
- It is now possible to start a crafting task even if the crafting preview says you can't (raoulvdberge) - It is now possible to start a crafting task even if the crafting preview says you can't (raoulvdberge)

View File

@@ -175,7 +175,7 @@ public class ItemPattern extends ItemBase implements ICraftingPatternProvider {
@Override @Override
public ActionResult<ItemStack> onItemRightClick(ItemStack stack, World world, EntityPlayer player, EnumHand hand) { public ActionResult<ItemStack> onItemRightClick(ItemStack stack, World world, EntityPlayer player, EnumHand hand) {
if (!world.isRemote && player.isSneaking()) { if (!world.isRemote && player.isSneaking()) {
return new ActionResult<>(EnumActionResult.SUCCESS, new ItemStack(RefinedStorageItems.PATTERN)); return new ActionResult<>(EnumActionResult.SUCCESS, new ItemStack(RefinedStorageItems.PATTERN, stack.stackSize));
} }
return new ActionResult<>(EnumActionResult.PASS, stack); return new ActionResult<>(EnumActionResult.PASS, stack);