1
0
mirror of https://github.com/p2r3/bareiron.git synced 2025-10-02 07:35:08 +02:00

return items to inventory when closing crafting window

This commit is contained in:
p2r3
2025-08-17 19:24:31 +03:00
parent d66175d91f
commit d27b085ae5
5 changed files with 63 additions and 17 deletions

View File

@@ -35,9 +35,9 @@ int getClientIndex (int client_fd);
int reservePlayerData (int client_fd, char *uuid);
int getPlayerData (int client_fd, PlayerData **output);
void clearPlayerFD (int client_fd);
int givePlayerItem (int client_fd, uint16_t item);
int givePlayerItem (PlayerData *player, uint16_t item, uint8_t count);
uint8_t serverSlotToClientSlot (uint8_t slot);
uint8_t serverSlotToClientSlot (int window_id, uint8_t slot);
uint8_t clientSlotToServerSlot (int window_id, uint8_t slot);
uint8_t getBlockChange (short x, short y, short z);