From 4eee5bfad6f9a283aaa051f80f4a85056ff2b037 Mon Sep 17 00:00:00 2001 From: SkyyWasTaken Date: Sun, 12 May 2024 18:38:40 -0400 Subject: [PATCH] Printing Press should now work with all dyeBlack --- .gitignore | 1 + src/main/java/jds/bibliocraft/blocks/BlockPrintingPress.java | 2 +- .../jds/bibliocraft/tileentities/TileEntityPrintPress.java | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 086d5dd..7ab5525 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /run /.vscode /bin +/.idea .classpath .project diff --git a/src/main/java/jds/bibliocraft/blocks/BlockPrintingPress.java b/src/main/java/jds/bibliocraft/blocks/BlockPrintingPress.java index 8e1d66a..148f6b3 100644 --- a/src/main/java/jds/bibliocraft/blocks/BlockPrintingPress.java +++ b/src/main/java/jds/bibliocraft/blocks/BlockPrintingPress.java @@ -54,7 +54,7 @@ public boolean onBlockActivatedCustomCommands(World world, BlockPos pos, IBlockS case 0: { //ink - if (playerhand != ItemStack.EMPTY && tile.isInk(playerhand)) + if (playerhand != ItemStack.EMPTY && TileEntityPrintPress.isInk(playerhand)) { tile.addStackToInventoryFromWorld(playerhand, slot, player); } diff --git a/src/main/java/jds/bibliocraft/tileentities/TileEntityPrintPress.java b/src/main/java/jds/bibliocraft/tileentities/TileEntityPrintPress.java index 82daa2f..26aa12e 100644 --- a/src/main/java/jds/bibliocraft/tileentities/TileEntityPrintPress.java +++ b/src/main/java/jds/bibliocraft/tileentities/TileEntityPrintPress.java @@ -451,7 +451,7 @@ public static int getItemBurnTime(ItemStack par0ItemStack) return 0; } Item var2 = par0ItemStack.getItem(); - if (var2 instanceof ItemDye) + if (isInk(par0ItemStack)) { return 200; } @@ -471,7 +471,7 @@ public boolean getPressAntimation() return animate; } - public boolean isInk(ItemStack stack) + public static boolean isInk(ItemStack stack) { boolean output = false; int[] oreIDs = OreDictionary.getOreIDs(stack);