Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-03 14:50:30 +01:00
Ursprung
2ea3d60307
Commit
7ec9eb08d9
@ -274,12 +274,18 @@ public class InventoryPackets {
|
|||||||
|
|
||||||
// NBT Changes
|
// NBT Changes
|
||||||
if (tag != null) {
|
if (tag != null) {
|
||||||
// Invert shield color id
|
// Invert banner/shield color id
|
||||||
if (item.getIdentifier() == 442 || item.getIdentifier() == 425) {
|
boolean banner = item.getIdentifier() == 425;
|
||||||
|
if (banner || item.getIdentifier() == 442) {
|
||||||
if (tag.get("BlockEntityTag") instanceof CompoundTag) {
|
if (tag.get("BlockEntityTag") instanceof CompoundTag) {
|
||||||
CompoundTag blockEntityTag = tag.get("BlockEntityTag");
|
CompoundTag blockEntityTag = tag.get("BlockEntityTag");
|
||||||
if (blockEntityTag.get("Base") instanceof IntTag) {
|
if (blockEntityTag.get("Base") instanceof IntTag) {
|
||||||
IntTag base = blockEntityTag.get("Base");
|
IntTag base = blockEntityTag.get("Base");
|
||||||
|
// Set banner item id according to nbt
|
||||||
|
if (banner) {
|
||||||
|
rawId = 6800 + base.getValue();
|
||||||
|
}
|
||||||
|
|
||||||
base.setValue(15 - base.getValue());
|
base.setValue(15 - base.getValue());
|
||||||
}
|
}
|
||||||
if (blockEntityTag.get("Patterns") instanceof ListTag) {
|
if (blockEntityTag.get("Patterns") instanceof ListTag) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren