Skip to content

Commit

Permalink
update priority check
Browse files Browse the repository at this point in the history
  • Loading branch information
LudoCrypt committed Jan 12, 2022
1 parent a0c5277 commit 931f7b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ yarn_mappings=1.18.1+build.18
loader_version=0.12.12
fabric_version=0.45.2+1.18

mod_version = 2.2.0
mod_version = 3.0.0
maven_group = net.ludocrypt
archives_base_name = limlib
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static LiminalTravelSound register(Identifier id, LiminalTravelSound trav
public static Optional<SoundEvent> getCurrent(ServerWorld from, ServerWorld to) {
MutableObject<Optional<SoundEvent>> mutableSound = new MutableObject<Optional<SoundEvent>>(Optional.of(SoundEvents.BLOCK_PORTAL_TRAVEL));
List<LiminalTravelSound> list = Lists.newArrayList(TRAVEL_SOUND_REGISTRY.values());
Collections.sort(list, (a, b) -> Integer.compare(a.priority(), b.priority()));
Collections.sort(list, (a, b) -> Integer.compare(a == null ? 1000 : a.priority(), b == null ? 1000 : b.priority()));
for (LiminalTravelSound sound : list) {
sound.hookSound(from, to, mutableSound);
}
Expand Down

0 comments on commit 931f7b0

Please sign in to comment.