Moved open method to Sky Chest Container.

This commit is contained in:
Sebastian Hartte
2020-06-02 18:57:05 +02:00
parent 2f50568237
commit 3e78c713d1
5 changed files with 22 additions and 6 deletions
@@ -86,12 +86,8 @@ public class BlockSkyChest extends AEBaseTileBlock<TileSkyChest>
if (tile == null) {
return ActionResultType.PASS;
}
INamedContainerProvider container = new SimpleNamedContainerProvider((wnd, p, pl) -> new ContainerSkyChest(wnd, p, tile), getNameTextComponent());
NetworkHooks.openGui((ServerPlayerEntity) player, container, buf -> {
buf.writeBlockPos(pos);
});
// FIXME Platform.openGUI( player, this.getTileEntity( w, pos ), AEPartLocation.fromFacing(hit.getFace()), GuiBridge.GUI_SKYCHEST );
ContainerSkyChest.open((ServerPlayerEntity) player, tile, getNameTextComponent());
}
return ActionResultType.SUCCESS;