Skip to content

Commit 044e07d

Browse files
committed
fix mixin
1 parent d10c614 commit 044e07d

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ mod_name=BarrierVisibility
55
# Sets the id of your mod that mod loaders use to recognize it.
66
mod_id=barriervisibility
77
# Sets the version of your mod. Make sure to update this when you make changes according to semver.
8-
mod_version=1.1.1
8+
mod_version=1.1.2
99
# Sets the name of the jar file that you put in your 'mods' folder.
1010
mod_archives_name=BarrierVisibility
1111

root.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@ plugins {
55
}
66

77
preprocess {
8-
"1.12.2-forge"(11202, "srg") {
9-
"1.8.9-forge"(10809, "srg")
10-
}
8+
"1.8.9-forge"(10809, "srg")
119
}

src/main/java/me/redth/barriervisibility/mixin/MixinBlockBarrier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
1717

1818
@Mixin(BlockBarrier.class)
19-
public class MixinBlockBarrier extends Block {
19+
public abstract class MixinBlockBarrier extends Block {
2020
public MixinBlockBarrier(Material blockMaterialIn) {
2121
super(blockMaterialIn);
2222
}

src/main/java/me/redth/barriervisibility/mixin/MixinBlockStateMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import java.util.Set;
1010

1111
@Mixin(BlockStateMapper.class)
12-
public class MixinBlockStateMapper {
12+
public abstract class MixinBlockStateMapper {
1313
@Redirect(method = "putAllStateModelLocations", at = @At(value = "INVOKE", target = "Ljava/util/Set;contains(Ljava/lang/Object;)Z"))
1414
public boolean getRenderType(Set instance, Object o) {
1515
return o != Blocks.barrier && instance.contains(o);

src/main/java/me/redth/barriervisibility/mixin/MixinWorldClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
1010

1111
@Mixin(WorldClient.class)
12-
public class MixinWorldClient {
12+
public abstract class MixinWorldClient {
1313
@Inject(method = "doVoidFogParticles", at = @At("HEAD"), cancellable = true)
1414
public void getRenderType(CallbackInfo ci) {
1515
if (BarrierVisibility.config.enabled && ModConfig.hideBarrierParticles)

0 commit comments

Comments
 (0)