if(container == null) return;
player.getNextWindowId();
player.closeContainer();
int windowId = player.currentWindowId;
GUIPacket packet = PacketHandler.getPacket(GUIPacket.class);
LPDataOutputStream data = new LPDataOutputStream();
guiProvider.writeData(data);
packet.setGuiID(guiProvider.getId());
packet.setWindowID(windowId);
packet.setGuiData(data.toByteArray());
MainProxy.sendPacketToPlayer(packet, player);
player.openContainer = container;
player.openContainer.windowId = windowId;
player.openContainer.addCraftingToCrafters(player);