Skip to content

Commit

Permalink
Disable remap on accessor and fix #130
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiDragon committed Sep 7, 2024
1 parent 1ddb750 commit 2dcdf55
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion changelog/3.0.4+1.21.1.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* Work around sodium breaking drawer icons by using vanilla rendering
* The real issue is still a bug in sodium, but this should prevent it from causing issues
* The real issue is still a bug in sodium, but this should prevent it from causing issues
* Fix crash when interacting with some slots of compacting drawers caused by previous bug (#130)
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@Mixin(RenderSystem.class)
public interface RenderSystemAccess {
@Accessor
@Accessor(remap = false)
static Vector3f[] getShaderLightDirections() {
throw new AssertionError();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public int getSlotCount() {

@Override
public Slot getSlot(int index) {
return getActiveSlotArray()[index];
return getSlotArray()[index];
}

@Override
Expand Down

0 comments on commit 2dcdf55

Please sign in to comment.