mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
fix: Return early in banner translation if tag is null (#2729)
This commit is contained in:
parent
65aaa07493
commit
b134dd3b1c
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,10 @@ public class BannerBlockEntityTranslator extends BlockEntityTranslator implement
|
||||||
builder.put("Base", 15 - bannerColor);
|
builder.put("Base", 15 - bannerColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tag == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (tag.contains("Patterns")) {
|
if (tag.contains("Patterns")) {
|
||||||
ListTag patterns = tag.get("Patterns");
|
ListTag patterns = tag.get("Patterns");
|
||||||
if (patterns.equals(BannerTranslator.OMINOUS_BANNER_PATTERN)) {
|
if (patterns.equals(BannerTranslator.OMINOUS_BANNER_PATTERN)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue