3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-03 14:50:30 +01:00

Show skeletons' bow like 1.8, not down as 1.9 without target (#347)

Dieser Commit ist enthalten in:
Mats 2016-04-12 12:18:58 +02:00 committet von Myles
Ursprung a8baa7af50
Commit 517299d673

Datei anzeigen

@ -22,6 +22,7 @@ import us.myles.ViaVersion.api.minecraft.item.Item;
import us.myles.ViaVersion.api.minecraft.metadata.Metadata;
import us.myles.ViaVersion.api.type.Type;
import us.myles.ViaVersion.protocols.base.ProtocolInfo;
import us.myles.ViaVersion.protocols.protocol1_9to1_8.metadata.NewType;
import java.util.*;
import java.util.concurrent.TimeUnit;
@ -126,6 +127,12 @@ public class EntityTracker extends StoredObject {
}
}
if (type == EntityType.SKELETON) {
if ((getMetaByIndex(metadataList, 12)) == null) {
metadataList.add(new Metadata(12, NewType.Boolean.getTypeID(), Type.BOOLEAN, true));
}
}
if (type == EntityType.PLAYER) {
if (metadata.getId() == 0) {
// Byte