Skip to content

Commit

Permalink
fix end rod culling
Browse files Browse the repository at this point in the history
  • Loading branch information
1foxy2 committed Sep 28, 2024
1 parent aceeafe commit c1e7534
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package ca.fxco.moreculling.mixin.blocks;

import ca.fxco.moreculling.api.block.MoreBlockCulling;
import net.minecraft.core.Direction;
import net.minecraft.world.level.block.EndRodBlock;
import net.minecraft.world.level.block.RodBlock;
import net.minecraft.world.level.block.state.BlockState;
import org.spongepowered.asm.mixin.Mixin;

@Mixin(EndRodBlock.class)
public abstract class EndRodBlock_cullMixin implements MoreBlockCulling {
@Override
public boolean moreculling$shouldAttemptToCull(BlockState state, Direction side) {
return side == state.getValue(RodBlock.FACING);
}
}
1 change: 1 addition & 0 deletions common/src/main/resources/moreculling.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"blocks.cullshape.ChorusFlowerBlock_voxelMixin",
"blocks.DoorBlock_cullAgainstMixin",
"blocks.EndGatewayBlock_cullMixin",
"blocks.EndRodBlock_cullMixin",
"blocks.FletchingTableBlock_devMixin",
"blocks.LadderBlock_cullAgainstMixin",
"blocks.LeavesBlock_typesMixin",
Expand Down

0 comments on commit c1e7534

Please sign in to comment.