3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-09-27 22:30:08 +02:00

Always remap body armor slot

Dieser Commit ist enthalten in:
Nassim Jahnke 2024-07-30 22:39:21 +02:00
Ursprung 8add9677a8
Commit b4a4b540cc
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: EF6771C01F6EF02F

Datei anzeigen

@ -78,9 +78,7 @@ public final class EntityPacketRewriter1_20_5 extends EntityRewriter<Clientbound
final Item item = protocol.getItemRewriter().handleItemToClient(wrapper.user(), wrapper.read(Types1_20_5.ITEM)); final Item item = protocol.getItemRewriter().handleItemToClient(wrapper.user(), wrapper.read(Types1_20_5.ITEM));
if (slot == 6) { if (slot == 6) {
if (type != null && type.isOrHasParent(EntityTypes1_20_5.ABSTRACT_HORSE)) { slot = 4; // Map body slot index to chest slot index for horses, also wolves
slot = 4; // Map body slot index to chest slot index for horses
}
if (type != null && type.isOrHasParent(EntityTypes1_20_5.LLAMA)) { if (type != null && type.isOrHasParent(EntityTypes1_20_5.LLAMA)) {
// Cancel equipment and set correct entity data instead // Cancel equipment and set correct entity data instead
wrapper.cancel(); wrapper.cancel();