fixed a bug where quickslot and itemgrid would respond to scrollX instead of scrollY

This commit is contained in:
minjaesong
2021-09-20 01:29:59 +09:00
parent 4784956627
commit 3748f1ecf3
4 changed files with 8 additions and 10 deletions

View File

@@ -77,9 +77,9 @@ object PlayerBuilderSigrid {
fun fillTestInventory(inventory: ActorInventory) {
App.tileMaker.tags.forEach { t, _ ->
inventory.add(t, 5)
inventory.add(t, 9995)
try {
inventory.add("wall@"+t, 9995) // this code will try to add nonexisting wall items, do not get surprised with NPEs
inventory.add("wall@$t", 9995) // this code will try to add nonexisting wall items, do not get surprised with NPEs
}
catch (e: Throwable) {
System.err.println("[PlayerBuilder] $e")