mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
Closes #1078
This commit is contained in:
parent
0a1d976ce0
commit
3d253aab3e
2 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue