Skip to content

Commit bcb46f4

Browse files
committed
Use default shape for culling for pale mossy carpets
Fixes: #408
1 parent 277b9e6 commit bcb46f4

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package ca.fxco.moreculling.mixin.blocks.cullshape;
2+
3+
import net.minecraft.world.level.block.Block;
4+
import net.minecraft.world.level.block.MossyCarpetBlock;
5+
import net.minecraft.world.level.block.state.BlockState;
6+
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
7+
import net.minecraft.world.phys.shapes.Shapes;
8+
import net.minecraft.world.phys.shapes.VoxelShape;
9+
import org.spongepowered.asm.mixin.Mixin;
10+
import org.spongepowered.asm.mixin.Unique;
11+
12+
@Mixin(MossyCarpetBlock.class)
13+
public class MossyCarpetBlock_voxelMixin extends Block {
14+
15+
public MossyCarpetBlock_voxelMixin(Properties properties) {
16+
super(properties);
17+
}
18+
19+
@Override
20+
public VoxelShape getOcclusionShape(BlockState state) {
21+
return super.getOcclusionShape(defaultBlockState());
22+
}
23+
}

common/src/main/resources/moreculling.mixins.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"blocks.cullshape.ChorusFlowerBlock_voxelMixin",
3333
"blocks.cullshape.EndRodBlock_voxelMixin",
3434
"blocks.cullshape.LightningRodBlock_voxelMixin",
35+
"blocks.cullshape.MossyCarpetBlock_voxelMixin",
3536
"blockstates.Block_drawSideMixin",
3637
"blockstates.BlockStateBase_moreMixin",
3738
"blockstates.Minecraft_loadBlocksMixin",

0 commit comments

Comments
 (0)