fix #122
This commit is contained in:
parent
1a1302b67e
commit
f2555fa4d6
4 changed files with 2 additions and 20 deletions
|
@ -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 =
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"variants": {
|
||||
"": {
|
||||
"model": "hexcasting:block/conjured"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"textures": {
|
||||
"particle": "minecraft:block/amethyst_block"
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "minecraft:item/amethyst_shard"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue