Skip to content

Commit

Permalink
Fixed compatibility error when reloading resources (reported by @Sett…
Browse files Browse the repository at this point in the history
  • Loading branch information
Majrusz committed Apr 26, 2024
1 parent 1e868a8 commit f097e4a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
- fixed compatibility crash related to Soul Jar (reported by @𝙿𝙰𝚇𝚇)
- fixed compatibility crash related to Soul Jar (reported by @𝙿𝙰𝚇𝚇)
- fixed compatibility error when reloading resources (reported by @SettingDust)
- fixed compatibility crash with Randomium (reported by @Doom, @ZacGames, @AllyJaxx)
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public List< ItemSetRequirement > findRequirementsMet( LivingEntity entity ) {
private ItemSet() {
Side.runOnClient( ()->()->{
OnItemTooltip.listen( data->Client.addTooltip( data, this ) )
.addCondition( data->this.requirements.stream().anyMatch( requirement->requirement.is( data.itemStack ) ) );
.addCondition( data->this.requirements.stream().anyMatch( requirement->requirement.is( data.itemStack ) ) )
.addCondition( data->Side.getLocalPlayer() != null /* compatibility check */ );
} );
}

Expand Down

0 comments on commit f097e4a

Please sign in to comment.