mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-12-29 03:48:46 +01:00
Don't move when relative
This commit is contained in:
parent
23a00d2555
commit
3549a823cb
@ -140,21 +140,6 @@ public class EntityPackets {
|
||||
map(Type.BYTE, toNewShort); // 3 - Z
|
||||
|
||||
map(Type.BOOLEAN); // 4 - On Ground
|
||||
|
||||
handler(new PacketHandler() {
|
||||
@Override
|
||||
public void handle(PacketWrapper wrapper) throws Exception {
|
||||
int entityID = wrapper.get(Type.VAR_INT, 0);
|
||||
if (((ViaVersionPlugin) ViaVersion.getInstance()).isHologramPatch()) {
|
||||
EntityTracker tracker = wrapper.user().get(EntityTracker.class);
|
||||
if (tracker.getKnownHolograms().contains(entityID)) {
|
||||
Short newValue = wrapper.get(Type.SHORT, 1);
|
||||
newValue = (short) (newValue + (((ViaVersionPlugin) ViaVersion.getInstance()).getHologramYOffset()));
|
||||
wrapper.set(Type.SHORT, 1, newValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
// Entity Equipment Packet
|
||||
|
Loading…
Reference in New Issue
Block a user