Skip to content

Commit

Permalink
Fix ArmorMaterial and FireworkShape generator
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMorpheus committed May 14, 2024
1 parent 5bc7e7b commit 838cc6a
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
import net.minecraft.world.entity.animal.horse.Markings;
import net.minecraft.world.entity.animal.horse.Variant;
import net.minecraft.world.entity.vehicle.Boat;
import net.minecraft.world.item.ArmorMaterials;
import net.minecraft.world.item.DyeColor;
import net.minecraft.world.item.ItemDisplayContext;
import net.minecraft.world.item.Rarity;
Expand Down Expand Up @@ -221,7 +220,7 @@ private static List<Generator> generators(final Context context) {
"item",
"FireworkShapes",
FireworkExplosion.Shape.class,
"getName",
"getSerializedName",
"sponge"
),
new EnumEntriesValidator<>(
Expand All @@ -238,12 +237,12 @@ private static List<Generator> generators(final Context context) {
"getName",
"sponge"
),
new EnumEntriesValidator<>(
new RegistryEntriesGenerator<>(
"data.type",
"ArmorMaterials",
ArmorMaterials.class,
"getName",
"sponge"
"ArmorMaterials",
context.relativeClass("data.type", "ArmorMaterial"),
Registries.ARMOR_MATERIAL
),
new EnumEntriesValidator<>(
"data.type",
Expand Down Expand Up @@ -575,7 +574,8 @@ private static List<Generator> generators(final Context context) {
),
new BlockStateDataProviderGenerator(),
new BlockStatePropertiesGenerator(),
new BlockStatePropertyKeysGenerator(),
// TODO fix me
//new BlockStatePropertyKeysGenerator(),
new RegistryEntriesGenerator<>(
"world.generation.feature",
"PlacedFeatures",
Expand Down

0 comments on commit 838cc6a

Please sign in to comment.