Skip to content

Commit

Permalink
fix: loading with porting lib and dmx channels not saving
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushmead committed Jun 7, 2024
1 parent 799b052 commit fa31b29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public int convertByteToInt(byte val) {

public void setChannelStartPoint(int channelStartPoint) {
this.channelStartPoint = channelStartPoint;
this.setChanged();
level.sendBlockUpdated(getBlockPos(), getBlockState(), getBlockState(), Block.UPDATE_CLIENTS);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public void setChannelCount(int channelCount) {

public void setChannelStartPoint(int channelStartPoint) {
this.channelStartPoint = channelStartPoint;
this.setChanged();
level.sendBlockUpdated(getBlockPos(), getBlockState(), getBlockState(), Block.UPDATE_CLIENTS);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public String getRefMapperConfig() {

@Override
public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
if(mixinClassName.contains("ClipContextMixin") && FabricLoader.getInstance().isModLoaded("porting_lib")){
if(mixinClassName.contains("ClipContextMixin") && (FabricLoader.getInstance().isModLoaded("porting_lib") || FabricLoader.getInstance().isModLoaded("porting_lib_base"))){
//Porting lib already has this mixin and thus we don't need it!
return false;
}
Expand Down

0 comments on commit fa31b29

Please sign in to comment.