Make 'actions' and 'predicates' always a list

Seems simpler to understand and a list of one entry behaves exactly the same
This commit is contained in:
OffsetMonkey538
2025-06-17 11:56:52 +03:00
parent 7c8bef146d
commit bb683ee380

View File

@@ -2,14 +2,8 @@ use ::java::data::loot::LootPool
use ::java::data::loot::LootContextType
dispatch minecraft:resource[loot-table-modifier:loot_modifier] to struct {
actions: (
Action |
[Action]
),
predicates: (
Predicate |
[Predicate]
),
actions: [Action],
predicates: [Predicate],
}
struct Action {