Skip to content

Commit

Permalink
Adjust applyOverlayConditions mixin target to specific ordinal (#163)
Browse files Browse the repository at this point in the history
Fixes world loading failure where changes Neos List copy to immutable leading to crashes, a for sure fix is still needed for when both loader conditions are found when such is only a neo mod. Fixes #151
  • Loading branch information
Dragon-Seeker authored Oct 13, 2024
1 parent 10b84f8 commit edeecbd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

@Mixin(Pack.class)
public class ResourcePackProfileMixin {
@ModifyVariable(method = "readPackMetadata", at = @At("STORE"))
@ModifyVariable(method = "readPackMetadata", at = @At(value = "STORE", ordinal = 0))
private static List<String> applyOverlayConditions(List<String> overlays, @Local PackResources resourcePack) throws IOException {
List<String> appliedOverlays = new ArrayList<>(overlays);
OverlayConditionsMetadata overlayMetadata = resourcePack.getMetadataSection(OverlayConditionsMetadata.SERIALIZER);
Expand Down

0 comments on commit edeecbd

Please sign in to comment.