Fixed resetting a stack of patterns yields 1 blank pattern, fixes #415
This commit is contained in:
@@ -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