Skip to content

Commit 62260af

Browse files
committed
fix
1 parent fefc7a2 commit 62260af

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ mod_name=Channel
3030
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
3131
mod_license=GNU GPL 3.0
3232
# The mod version. See https://semver.org/
33-
mod_version=26.1.2-12+alpha
33+
mod_version=26.1.2-13+alpha
3434
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
3535
# This should match the base package used for the mod sources.
3636
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html

src/main/java/cn/ussshenzhou/channel/mixin/ClipContextMixin.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,21 @@
1010
@Mixin(ClipContext.Block.class)
1111
enum ClipContextMixin {
1212
CHANNEL_OUTLINE((state, level, pos, context) -> {
13-
if (state.is(ModTags.AUDIO_SOURCE) || (CompatHelper.MEK_BLOCK_CLASS != null && CompatHelper.MEK_BLOCK_CLASS.isInstance(state.getBlock()))) {
13+
if (state.is(ModTags.AUDIO_SOURCE)) {
1414
return Shapes.empty();
1515
}
16+
if (CompatHelper.MEK_BLOCK_CLASS != null && CompatHelper.MEK_BLOCK_CLASS.isInstance(state.getBlock())) {
17+
return Shapes.block();
18+
}
1619
return state.getShape(level, pos, context);
1720
}),
1821
CHANNEL_VISUAL((state, level, pos, context) -> {
19-
if (state.is(ModTags.AUDIO_SOURCE) || (CompatHelper.MEK_BLOCK_CLASS != null && CompatHelper.MEK_BLOCK_CLASS.isInstance(state.getBlock()))) {
22+
if (state.is(ModTags.AUDIO_SOURCE)) {
2023
return Shapes.empty();
2124
}
25+
if (CompatHelper.MEK_BLOCK_CLASS != null && CompatHelper.MEK_BLOCK_CLASS.isInstance(state.getBlock())) {
26+
return Shapes.block();
27+
}
2228
return state.getVisualShape(level, pos, context);
2329
});
2430

src/main/java/cn/ussshenzhou/channel/util/CompatHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class CompatHelper {
77
static {
88
Class<?> mek;
99
try {
10-
mek = Class.forName("mekanism.common.tile.base.TileEntityUpdateable");
10+
mek = Class.forName("mekanism.common.block.BlockMekanism");
1111
} catch (ClassNotFoundException e) {
1212
mek = null;
1313
}

0 commit comments

Comments
 (0)