Skip to content

Commit

Permalink
fix mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
RedthMC committed Aug 31, 2023
1 parent d10c614 commit 044e07d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ mod_name=BarrierVisibility
# Sets the id of your mod that mod loaders use to recognize it.
mod_id=barriervisibility
# Sets the version of your mod. Make sure to update this when you make changes according to semver.
mod_version=1.1.1
mod_version=1.1.2
# Sets the name of the jar file that you put in your 'mods' folder.
mod_archives_name=BarrierVisibility

Expand Down
4 changes: 1 addition & 3 deletions root.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,5 @@ plugins {
}

preprocess {
"1.12.2-forge"(11202, "srg") {
"1.8.9-forge"(10809, "srg")
}
"1.8.9-forge"(10809, "srg")
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(BlockBarrier.class)
public class MixinBlockBarrier extends Block {
public abstract class MixinBlockBarrier extends Block {
public MixinBlockBarrier(Material blockMaterialIn) {
super(blockMaterialIn);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import java.util.Set;

@Mixin(BlockStateMapper.class)
public class MixinBlockStateMapper {
public abstract class MixinBlockStateMapper {
@Redirect(method = "putAllStateModelLocations", at = @At(value = "INVOKE", target = "Ljava/util/Set;contains(Ljava/lang/Object;)Z"))
public boolean getRenderType(Set instance, Object o) {
return o != Blocks.barrier && instance.contains(o);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(WorldClient.class)
public class MixinWorldClient {
public abstract class MixinWorldClient {
@Inject(method = "doVoidFogParticles", at = @At("HEAD"), cancellable = true)
public void getRenderType(CallbackInfo ci) {
if (BarrierVisibility.config.enabled && ModConfig.hideBarrierParticles)
Expand Down

0 comments on commit 044e07d

Please sign in to comment.