Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-11-16 04:50:10 +01:00
Always remap body armor slot
Dieser Commit ist enthalten in:
Ursprung
8add9677a8
Commit
b4a4b540cc
@ -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();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren