Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-11-16 04:50:10 +01:00
Fix possible BannerHandler NPE in 1.13->1.12.2 (#814)
Dieser Commit ist enthalten in:
Ursprung
e0ec308fa0
Commit
e56920c7b1
@ -51,9 +51,11 @@ public class BannerHandler implements BackwardsBlockEntityHandler {
|
|||||||
if (patternsTag != null) {
|
if (patternsTag != null) {
|
||||||
for (CompoundTag pattern : patternsTag) {
|
for (CompoundTag pattern : patternsTag) {
|
||||||
NumberTag colorTag = pattern.getNumberTag("Color");
|
NumberTag colorTag = pattern.getNumberTag("Color");
|
||||||
|
if (colorTag != null) {
|
||||||
pattern.putInt("Color", 15 - colorTag.asInt()); // Invert color id
|
pattern.putInt("Color", 15 - colorTag.asInt()); // Invert color id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return tag;
|
return tag;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren