From 094f4c6d5882501983a4c42f1f0ab796e4daa5f2 Mon Sep 17 00:00:00 2001 From: Harry Date: Wed, 8 Jun 2016 21:43:15 +0100 Subject: [PATCH] Correct hologram Y offset https://github.com/filoghost/HolographicDisplays/blob/master/HolographicDisplays/Plugin/com/gmail/filoghost/holographicdisplays/util/Offsets.java#L15 The offset is by default -1.25 for 1.8, however 1.9 clients require only -0.29. (-1.25 - -0.29) = -0.96 which should be the correct offset. --- src/main/java/us/myles/ViaVersion/ViaConfig.java | 2 +- src/main/resources/config.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/us/myles/ViaVersion/ViaConfig.java b/src/main/java/us/myles/ViaVersion/ViaConfig.java index a5c382621..d3e157e53 100644 --- a/src/main/java/us/myles/ViaVersion/ViaConfig.java +++ b/src/main/java/us/myles/ViaVersion/ViaConfig.java @@ -87,7 +87,7 @@ public class ViaConfig implements ViaVersionConfig { @Override public double getHologramYOffset() { - return plugin.getConfig().getDouble("hologram-y", -1D); + return plugin.getConfig().getDouble("hologram-y", -0.96D); } @Override diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index c29934244..d8b59ed64 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -54,7 +54,7 @@ shield-blocking: true # If they're in the wrong place enable this hologram-patch: false # This is the offset, should work as default when enabled. -hologram-y: -1 +hologram-y: -0.96 # Enable player tick simulation, this fixes eating, drinking, nether portals. simulate-pt: true # Should we use nms player to simulate packets, (may fix anti-cheat issues)