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

Fix hologram offset.

Dieser Commit ist enthalten in:
Myles 2016-03-26 14:08:23 +00:00
Ursprung f371419396
Commit e9d96f2daf

Datei anzeigen

@ -87,7 +87,7 @@ public class EntityPackets {
EntityTracker tracker = wrapper.user().get(EntityTracker.class); EntityTracker tracker = wrapper.user().get(EntityTracker.class);
if (tracker.getKnownHolograms().contains(entityID)) { if (tracker.getKnownHolograms().contains(entityID)) {
Double newValue = wrapper.get(Type.DOUBLE, 1); Double newValue = wrapper.get(Type.DOUBLE, 1);
newValue += (32D * ViaVersion.getConfig().getHologramYOffset()); newValue += (ViaVersion.getConfig().getHologramYOffset());
wrapper.set(Type.DOUBLE, 1, newValue); wrapper.set(Type.DOUBLE, 1, newValue);
} }
} }