SteamWar/BauSystem2.0
Archiviert
12
0

Hotfix InventoryFiller
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2022-08-28 13:37:19 +02:00
Ursprung a3aa343683
Commit 974b12a1fd

Datei anzeigen

@ -68,7 +68,7 @@ public class InventoryFiller implements Listener {
Inventory inventory = container.getInventory();
event.setCancelled(true);
int upperBound = event.getPreviousSlot() + 5;
int upperBound = event.getPreviousSlot() + 4;
if (upperBound > 8) upperBound -= 8;
int lowerBound = event.getPreviousSlot() - 5;
if (lowerBound < 0) lowerBound += 8;
@ -76,7 +76,7 @@ public class InventoryFiller implements Listener {
int direction = 0;
if (event.getNewSlot() > event.getPreviousSlot() || event.getNewSlot() < upperBound) {
direction = -1;
} else if (event.getNewSlot() < event.getPreviousSlot() || event.getNewSlot() > lowerBound) {
} else if (event.getNewSlot() < event.getPreviousSlot() || event.getNewSlot() >= lowerBound) {
direction = 1;
}