public void deleteInventory(int slot, int qty) {
        inventory.deleteInventory(slot, qty);
        if (registry.getGameController().multiplayerMode != registry.getGameController().multiplayerMode.NONE && registry.getNetworkThread() != null) {
            if (registry.getNetworkThread().readyForUpdates()) {
                UpdatePlaceable up = new UpdatePlaceable(this.getId());
                up.inventory = inventory;
                up.action = "InventoryUpdate";
                registry.getNetworkThread().sendData(up);
            }
        }
    }