Skip to content

Commit

Permalink
fix missing particles on ladder blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
UnlikePaladin committed Jan 2, 2024
1 parent 1e88cc1 commit 2800085
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"credit": "By UnlikePaladin",
"textures": {
"0": "#texture",
"particle": "#texture"
"0": "minecraft:block/oak_planks",
"particle": "minecraft:block/oak_planks"
},
"elements": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"credit": "By UnlikePaladin",
"textures": {
"0": "#texture",
"particle": "#texture"
"0": "minecraft:block/oak_planks",
"particle": "minecraft:block/oak_planks"
},
"elements": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
import net.minecraft.client.render.model.ModelBakeSettings;
import net.minecraft.client.texture.Sprite;
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.world.BlockRenderView;
import net.minecraftforge.client.model.data.IModelData;
import net.minecraftforge.client.model.data.ModelDataMap;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand All @@ -35,6 +38,10 @@ public List<BakedQuad> getQuads(@Nullable BlockState state, @Nullable Direction
return Collections.emptyList();
}

@Override
public @NotNull IModelData getModelData(@NotNull BlockRenderView world, @NotNull BlockPos pos, @NotNull BlockState state, @NotNull IModelData tileData) {
return super.getModelData(world, pos, state, new ModelDataMap.Builder().build());
}

@Override
public List<BakedQuad> getQuads(ItemStack stack, @Nullable BlockState state, @Nullable Direction face, Random random) {
Expand Down

0 comments on commit 2800085

Please sign in to comment.