Don't warn for non-horse armor on horses

Closes #448
This commit is contained in:
Nassim Jahnke 2022-03-30 11:07:38 +02:00
parent c75e5bd6a7
commit fc22d7e6c8
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -283,7 +283,6 @@ public class BlockItemPackets1_14 extends com.viaversion.viabackwards.api.rewrit
Item item = wrapper.read(Type.FLAT_VAR_INT_ITEM);
int armorType = item == null || item.identifier() == 0 ? 0 : item.identifier() - 726;
if (armorType < 0 || armorType > 3) {
ViaBackwards.getPlatform().getLogger().warning("Received invalid horse armor: " + item);
wrapper.cancel();
return;
}