Skip to content

Commit

Permalink
[1.18.x] Fix MinecraftForge#8530 (Banner Pattern) NPE (MinecraftForge…
Browse files Browse the repository at this point in the history
  • Loading branch information
ChampionAsh5357 authored Jun 7, 2022
1 parent 9528fd8 commit 270e778
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/net/minecraftforge/common/ForgeHooks.java
Original file line number Diff line number Diff line change
Expand Up @@ -1488,6 +1488,10 @@ public static MobEffect loadMobEffect(CompoundTag nbt, String key, @Nullable Mob
private static BannerPattern[] nonPatternItems;
private static int totalPatternRows;

static
{
refreshBannerPatternData();
}
public static void refreshBannerPatternData()
{
nonPatternItems = Arrays.stream(BannerPattern.values())
Expand Down

0 comments on commit 270e778

Please sign in to comment.