remove unnecessary comparison

This commit is contained in:
p2r3
2025-08-29 15:59:20 +03:00
parent ecaa62da69
commit ef28d7c0d5

View File

@@ -187,7 +187,7 @@ uint8_t clientSlotToServerSlot (int window_id, uint8_t slot) {
// overflow chest slots into crafting grid
// technically invalid, expected to be handled on a per-case basis
if (slot >= 0 && slot <= 26) return 41 + slot;
if (slot <= 26) return 41 + slot;
// the rest of the slots are identical, just shifted by 18
if (slot >= 27 && slot <= 62) return clientSlotToServerSlot(0, slot - 18);