Improved handling of chat message packets

More improvements and fixes relating to dynamic regions and constructions
This commit is contained in:
Ceikry
2023-02-28 23:04:52 +00:00
committed by Ryan
parent dcaa980822
commit 5206c99151
9 changed files with 100 additions and 59 deletions
@@ -201,7 +201,6 @@ public final class BuildingUtils {
for (int i = 7; i >= 0; i--) {
Item can = player.getInventory().getItem(new Item(WATERING_CAN - i, 1));
if (can != null && can.getSlot() > -1) {
System.out.println("Can index " + (i == 7 ? i + 2 : i + 1) + ".");
player.getInventory().replace(new Item(WATERING_CAN - (i == 7 ? i + 2 : i + 1), 1), can.getSlot());
break;
}