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

@@ -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);