Skip to content

Commit

Permalink
Merge pull request #2 from enjoythecode/patch-1
Browse files Browse the repository at this point in the history
update AbstractRelic patch to set the tier field
  • Loading branch information
boardengineer committed May 5, 2023
2 parents f6d80da + 84ca485 commit e59772f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public static class FastRelicConstructorPatch {
@SpireInsertPatch(loc = 127)
public static SpireReturn Insert(AbstractRelic _instance, String setId, String imgName, AbstractRelic.RelicTier tier, AbstractRelic.LandingSound sfx) {
if (LudicrousSpeedMod.plaidMode) {
// we need to set the tier field to avoid NPE
_instance.tier = tier;
return SpireReturn.Return(null);
}
return SpireReturn.Continue();
Expand Down

0 comments on commit e59772f

Please sign in to comment.