Fixed resetting a stack of patterns yields 1 blank pattern, fixes #415
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
# Refined Storage Changelog
|
||||
|
||||
### 1.2
|
||||
- Fixed resetting a stack of patterns yields 1 blank pattern (raoulvdberge)
|
||||
|
||||
### 1.1.2
|
||||
- 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)
|
||||
|
||||
@@ -175,7 +175,7 @@ public class ItemPattern extends ItemBase implements ICraftingPatternProvider {
|
||||
@Override
|
||||
public ActionResult<ItemStack> onItemRightClick(ItemStack stack, World world, EntityPlayer player, EnumHand hand) {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user