Skip to content

Commit

Permalink
Ebe compatibility
Browse files Browse the repository at this point in the history
Fixes: #358
  • Loading branch information
1foxy2 committed Mar 10, 2025
1 parent e9be604 commit 44777c2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package ca.fxco.moreculling.mixin.compat;

import me.fallenbreath.conditionalmixin.api.annotation.Condition;
import me.fallenbreath.conditionalmixin.api.annotation.Restriction;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.SignBlock;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.phys.shapes.VoxelShape;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Unique;

@Restriction(require = @Condition("enhancedblockentities"))
@Mixin(SignBlock.class)
public class SignBlock_ebeMixin extends Block {
@Unique
private static final VoxelShape moreculling$cullingShape = Block.box(7.3F, 0.0F, 7.3F, 8.7F, 16.0, 8.7F);

public SignBlock_ebeMixin(Properties p_49795_) {
super(p_49795_);
}

@Override
public VoxelShape getOcclusionShape(BlockState state) {
return moreculling$cullingShape;
}
}
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 @@ -40,6 +40,7 @@
"compat.BlockOcclusionCache_sodiumMixin",
"compat.BlockStateBaseMixin_clientTweaksMixin",
"compat.ItemRenderer_sodiumMixin",
"compat.SignBlock_ebeMixin",
"entities.ItemFrameRenderer_cullMixin",
"gui.SodiumOptionsGUIMixin",
"models.BakedModel_extendsMixin",
Expand Down
1 change: 1 addition & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies {
//modImplementation "maven.modrinth:balm:${project.clienttweaks_version}+fabric-${project.minecraft_version}"
// ^ uncomment to test with clienttweaks

//modImplementation("maven.modrinth:ebe:0.11.3+1.21.4")
modApi("me.shedaniel.cloth:cloth-config-fabric:${project.cloth_config_version}") {
exclude(group: "net.fabricmc.fabric-api")
}
Expand Down

0 comments on commit 44777c2

Please sign in to comment.