From 2f74a90afc02f9492d440258503d4a0c3b746fae Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 2 Mar 2024 00:35:23 +0000 Subject: [PATCH] Le fixes --- .../java/com/minelittlepony/unicopia/server/world/Tree.java | 6 +++++- .../unicopia/models/block/potted_golden_oak_sapling.json | 2 +- .../unicopia/models/block/potted_green_apple_sapling.json | 2 +- .../assets/unicopia/models/block/potted_mango_sapling.json | 2 +- .../assets/unicopia/models/block/potted_palm_sapling.json | 2 +- .../unicopia/models/block/potted_sour_apple_sapling.json | 2 +- .../unicopia/models/block/potted_sweet_apple_sapling.json | 2 +- .../assets/unicopia/models/block/potted_zapling.json | 2 +- 8 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/server/world/Tree.java b/src/main/java/com/minelittlepony/unicopia/server/world/Tree.java index 089b1fd0..c85fa322 100644 --- a/src/main/java/com/minelittlepony/unicopia/server/world/Tree.java +++ b/src/main/java/com/minelittlepony/unicopia/server/world/Tree.java @@ -149,7 +149,11 @@ public record Tree ( )), configuredFeatureId, placements.values().stream() .collect(Collectors.toUnmodifiableSet()), sapling, - sapling.map(saplingBlock -> Registry.register(Registries.BLOCK, saplingId.get().withPrefixedPath("potted_"), Blocks.createFlowerPotBlock(saplingBlock)))); + sapling.map(saplingBlock -> { + Block flowerPot = Registry.register(Registries.BLOCK, saplingId.get().withPrefixedPath("potted_"), Blocks.createFlowerPotBlock(saplingBlock)); + UBlocks.TRANSLUCENT_BLOCKS.add(flowerPot); + return flowerPot; + })); if (REGISTRY.isEmpty()) { bootstrap(); diff --git a/src/main/resources/assets/unicopia/models/block/potted_golden_oak_sapling.json b/src/main/resources/assets/unicopia/models/block/potted_golden_oak_sapling.json index 96ab1741..3423faef 100644 --- a/src/main/resources/assets/unicopia/models/block/potted_golden_oak_sapling.json +++ b/src/main/resources/assets/unicopia/models/block/potted_golden_oak_sapling.json @@ -1,6 +1,6 @@ { "parent": "minecraft:block/flower_pot_cross", "textures": { - "plant": "unicopia:block/golden_oak_sapling" + "plant": "unicopia:item/golden_oak_sapling" } } diff --git a/src/main/resources/assets/unicopia/models/block/potted_green_apple_sapling.json b/src/main/resources/assets/unicopia/models/block/potted_green_apple_sapling.json index e9d2b784..b2d76a3a 100644 --- a/src/main/resources/assets/unicopia/models/block/potted_green_apple_sapling.json +++ b/src/main/resources/assets/unicopia/models/block/potted_green_apple_sapling.json @@ -1,6 +1,6 @@ { "parent": "minecraft:block/flower_pot_cross", "textures": { - "plant": "unicopia:block/green_apple_sapling" + "plant": "unicopia:item/green_apple_sapling" } } diff --git a/src/main/resources/assets/unicopia/models/block/potted_mango_sapling.json b/src/main/resources/assets/unicopia/models/block/potted_mango_sapling.json index 40bb156d..c076b71d 100644 --- a/src/main/resources/assets/unicopia/models/block/potted_mango_sapling.json +++ b/src/main/resources/assets/unicopia/models/block/potted_mango_sapling.json @@ -1,6 +1,6 @@ { "parent": "minecraft:block/flower_pot_cross", "textures": { - "plant": "unicopia:block/mango_sapling" + "plant": "unicopia:item/mango_sapling" } } diff --git a/src/main/resources/assets/unicopia/models/block/potted_palm_sapling.json b/src/main/resources/assets/unicopia/models/block/potted_palm_sapling.json index 72cf54e1..37ca7b25 100644 --- a/src/main/resources/assets/unicopia/models/block/potted_palm_sapling.json +++ b/src/main/resources/assets/unicopia/models/block/potted_palm_sapling.json @@ -1,6 +1,6 @@ { "parent": "minecraft:block/flower_pot_cross", "textures": { - "plant": "unicopia:block/palm_sapling" + "plant": "unicopia:item/palm_sapling" } } diff --git a/src/main/resources/assets/unicopia/models/block/potted_sour_apple_sapling.json b/src/main/resources/assets/unicopia/models/block/potted_sour_apple_sapling.json index 5a51feda..6a5cd19e 100644 --- a/src/main/resources/assets/unicopia/models/block/potted_sour_apple_sapling.json +++ b/src/main/resources/assets/unicopia/models/block/potted_sour_apple_sapling.json @@ -1,6 +1,6 @@ { "parent": "minecraft:block/flower_pot_cross", "textures": { - "plant": "unicopia:block/sour_apple_sapling" + "plant": "unicopia:item/sour_apple_sapling" } } diff --git a/src/main/resources/assets/unicopia/models/block/potted_sweet_apple_sapling.json b/src/main/resources/assets/unicopia/models/block/potted_sweet_apple_sapling.json index 3eadea75..84f2327a 100644 --- a/src/main/resources/assets/unicopia/models/block/potted_sweet_apple_sapling.json +++ b/src/main/resources/assets/unicopia/models/block/potted_sweet_apple_sapling.json @@ -1,6 +1,6 @@ { "parent": "minecraft:block/flower_pot_cross", "textures": { - "plant": "unicopia:block/sweet_apple_sapling" + "plant": "unicopia:item/sweet_apple_sapling" } } diff --git a/src/main/resources/assets/unicopia/models/block/potted_zapling.json b/src/main/resources/assets/unicopia/models/block/potted_zapling.json index d410f118..24cd445e 100644 --- a/src/main/resources/assets/unicopia/models/block/potted_zapling.json +++ b/src/main/resources/assets/unicopia/models/block/potted_zapling.json @@ -1,6 +1,6 @@ { "parent": "minecraft:block/flower_pot_cross", "textures": { - "plant": "unicopia:block/zapling" + "plant": "unicopia:item/zapling" } }