Skip to content

Commit

Permalink
Fix optionals being untyped
Browse files Browse the repository at this point in the history
Signed-off-by: TheSilkMiner <thesilkminer@outlook.com>
  • Loading branch information
TheSilkMiner committed May 28, 2022
1 parent 1c6a453 commit aa84b3a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public static Tier of(
final int enchantmentValue,
final ResourceLocation tag,
final ItemReference repairItem, // TODO("Figure out ingredients")
@ZenCodeType.Optional(value = "[]") final TierSortingStruct[] lowerTiers,
@ZenCodeType.Optional(value = "[]") final TierSortingStruct[] higherTiers
@ZenCodeType.Optional(value = "[] as " + ContentTweakerVanillaConstants.VANILLA_RT_PACKAGE + ".TierSortingStruct[]") final TierSortingStruct[] lowerTiers,
@ZenCodeType.Optional(value = "[] as " + ContentTweakerVanillaConstants.VANILLA_RT_PACKAGE + ".TierSortingStruct[]") final TierSortingStruct[] higherTiers
) {
final ResourceLocation tierName = ContentTweakerConstants.rl(NameUtil.fixing(name, (fixed, mistakes) -> report(name, fixed, mistakes)));
if (level < 0) {
Expand Down

0 comments on commit aa84b3a

Please sign in to comment.