Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
a3aa343683
Commit
974b12a1fd
@ -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;
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren