support placing blocks on containers while sneaking

This commit is contained in:
p2r3
2025-08-23 04:24:06 +03:00
parent 77c68c4dbc
commit ee69d3ab9b
4 changed files with 34 additions and 10 deletions

View File

@@ -335,6 +335,10 @@ void handlePacket (int client_fd, int length, int packet_id) {
}
break;
case 0x2A:
if (state == STATE_PLAY) cs_playerInput(client_fd);
break;
case 0x34:
if (state == STATE_PLAY) cs_setHeldItem(client_fd);
break;