Skip to content

Commit

Permalink
Raise priority of collisions LevelMixin to apply after Lithium
Browse files Browse the repository at this point in the history
Lithium replaces some of the height-related methods used by WorldUtil to return fields initialized in their constructor hook. We need to apply afterward to have them return valid data.

Given the application-order sensitive nature of the issue, it only presented in-dev.
  • Loading branch information
jpenilla committed Sep 15, 2024
1 parent 453b635 commit cfa80c4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
import java.util.List;
import java.util.Optional;

@Mixin(Level.class)
// Higher priority to apply after Lithium mixin.world.inline_height.WorldMixin
@Mixin(value = Level.class, priority = 1100)
abstract class LevelMixin implements CollisionLevel, LevelAccessor, AutoCloseable {

@Shadow
Expand Down

0 comments on commit cfa80c4

Please sign in to comment.