i'm trying to lock a specific item in a specific slot, so that it cannot be moved.
i was told that this event is the right way to do so, but the way the context is provided makes it near impossible for me to check for every way you can move the item around.
you can click on the item
you can hover on the item and use F, or use a hotbar key (which you need to check for seperately)
you can also hover on a completely different slot and then use F or a hotbar key that corresponds to where the item is, and there's no context for old_item or old_slot or anything, so for the swapping items, i have to check that the click type was SWAP, and then manually check both the offhand slot and whatever slot was hovered. or I have to check that a hotbar key was pressed, and then manually check the slot at the hotbar key, and the actual slot being clicked. And if i'm hovering over the offhand slot, and then I press the hotbar key, that's a whole different thing.
am I doing this wrong?