// Canceling the event if the slot is locked
if (g_inventory.isLocked(slot))
event.setCancelled(true);
// Paying for the slot if the player who clicked it has enough experience.
if (event.getClick().isLeftClick() && event.getClick().isShiftClick()) {
if (player.getLevel() >= g_inventory.unlocked_slots) {
player.setLevel(player.getLevel() - g_inventory.unlocked_slots);
g_inventory.setLocked(slot, false);
g_inventory.populateLockedSlots(inventory);
}
}
This will not check for locked for buying as well.
`Line 80-91 in GlyphInventory.java
This will not check for locked for buying as well.