Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
onebeastchris committed Dec 7, 2024
1 parent f610a0d commit c298061
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ public ItemStackResponse translateSpecialRequest(GeyserSession session, Inventor
inputCopy.setNetId(session.getNextItemNetId());
BannerPatternLayer bannerPatternLayer = BannerItem.getJavaBannerPattern(session, pattern); // TODO
if (bannerPatternLayer != null) {
List<BannerPatternLayer> patternsList = inputCopy.getComponentOrFallback(DataComponentType.BANNER_PATTERNS, new ArrayList<>());
List<BannerPatternLayer> patternsList = inputCopy.getComponent(DataComponentType.BANNER_PATTERNS);
if (patternsList == null) {
patternsList = new ArrayList<>();
}
patternsList.add(bannerPatternLayer);
inputCopy.getOrCreateComponents().put(DataComponentType.BANNER_PATTERNS, patternsList);
}
Expand Down

0 comments on commit c298061

Please sign in to comment.