This commit is contained in:
yrsegal@gmail.com 2022-06-13 23:29:47 -04:00
parent 1a1302b67e
commit f2555fa4d6
4 changed files with 2 additions and 20 deletions

View file

@ -52,7 +52,7 @@ class SpellDatum<T : Any> private constructor(val payload: T) {
var total1 = total + 1 // make mutable and include the list itself
for (elt in pl) {
val (t, subtotal) = elt.serializeToNBTWithDepthCheck(depth + 1, total1) ?: return null
total1 += subtotal
total1 = subtotal
outList.add(t)
}
return Pair(
@ -71,7 +71,7 @@ class SpellDatum<T : Any> private constructor(val payload: T) {
else -> throw RuntimeException("cannot serialize $pl because it is of type ${pl.javaClass.canonicalName} which is not serializable")
}
}
return Pair(tag, 1)
return Pair(tag, total + 1)
}
override fun toString(): String =

View file

@ -1,7 +0,0 @@
{
"variants": {
"": {
"model": "hexcasting:block/conjured"
}
}
}

View file

@ -1,5 +0,0 @@
{
"textures": {
"particle": "minecraft:block/amethyst_block"
}
}

View file

@ -1,6 +0,0 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "minecraft:item/amethyst_shard"
}
}