From 3d253aab3e3d4a6c30e1025cf271a8079288060c Mon Sep 17 00:00:00 2001 From: Shadows_of_Fire Date: Thu, 10 May 2018 05:41:56 -0400 Subject: [PATCH] Closes #1078 --- .../mod/util/compat/CompatFastBench.java | 8 ++++---- .../actuallyadditions/mod/util/compat/CompatUtil.java | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/util/compat/CompatFastBench.java b/src/main/java/de/ellpeck/actuallyadditions/mod/util/compat/CompatFastBench.java index 5535bf77a..be9bbc129 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/util/compat/CompatFastBench.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/util/compat/CompatFastBench.java @@ -12,8 +12,8 @@ import shadows.fastbench.gui.GuiFastBench; public class CompatFastBench { - public static Container getFastBenchContainer(EntityPlayer p, World world, int x, int y, int z) { - return new ContainerFastBench(p, world, x, y, z) { + public static Container getFastBenchContainer(EntityPlayer p, World world) { + return new ContainerFastBench(p, world, BlockPos.ORIGIN) { @Override public boolean canInteractWith(EntityPlayer playerIn) { return true; @@ -22,8 +22,8 @@ public class CompatFastBench { } @SideOnly(Side.CLIENT) - public static Gui getFastBenchGui(EntityPlayer p, World world, int x, int y, int z) { - return new GuiFastBench(p.inventory, world, new BlockPos(x, y, z)); + public static Gui getFastBenchGui(EntityPlayer p, World world) { + return new GuiFastBench(p.inventory, world, BlockPos.ORIGIN); } } diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/util/compat/CompatUtil.java b/src/main/java/de/ellpeck/actuallyadditions/mod/util/compat/CompatUtil.java index 54eae5636..d4a59e137 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/util/compat/CompatUtil.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/util/compat/CompatUtil.java @@ -27,12 +27,12 @@ public final class CompatUtil { @SideOnly(Side.CLIENT) public static Object getCrafterGuiElement(EntityPlayer player, World world, int x, int y, int z) { - if (fb) return CompatFastBench.getFastBenchGui(player, world, x, y, z); + if (fb) return CompatFastBench.getFastBenchGui(player, world); return new GuiCrafting(player.inventory, world, new BlockPos(x, y, z)); } public static Object getCrafterContainerElement(EntityPlayer player, World world, int x, int y, int z) { - if (fb) return CompatFastBench.getFastBenchContainer(player, world, x, y, z); + if (fb) return CompatFastBench.getFastBenchContainer(player, world); return new ContainerWorkbench(player.inventory, world, new BlockPos(x, y, z)) { public boolean canInteractWith(EntityPlayer playerIn) { return true;