This commit is contained in:
Shadows_of_Fire 2018-05-10 05:41:56 -04:00
parent 0a1d976ce0
commit 3d253aab3e
2 changed files with 6 additions and 6 deletions

View file

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

View file

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