Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(firstEmpty >= 0){
- // There is an empty slot
- if(playerItemInSlot1 != null && != air){
- // They have something there
- inventory.setItem(firstEmpty, playerItemInSlot1); // Move item
- }
- inventory.setItem(1, myItem); // Set the tool to slot 1
- }
Advertisement
Add Comment
Please, Sign In to add comment