update ::item to actually default to one amount

This commit is contained in:
Beck 2026-06-09 00:47:52 -07:00
parent be744e73b3
commit cd14fbcc30

View file

@ -67,7 +67,7 @@ class SpawnCommandSet : CommandSet(Privilege.ADMIN){
return@define
}
val id = args[1].toIntOrNull() ?: return@define
var amount = (args.getOrNull(2) ?: "1").toInt()
var amount = args.getOrNull(2)?.toIntOrNull() ?: 1
if (id > Cache.getItemDefinitionsSize()) {
reject(player,"Item ID '$id' out of range.")
return@define