From f9ad3b59f18b585caf884636a9142fef383ed827 Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Mon, 19 Mar 2018 18:45:43 -0300 Subject: [PATCH] Fix #25 (#38) * Fix #25 * Update PlayerPackets1_11.java --- .../protocol/protocol1_10to1_11/packets/PlayerPackets1_11.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_10to1_11/packets/PlayerPackets1_11.java b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_10to1_11/packets/PlayerPackets1_11.java index fc68c750..cb13e8aa 100644 --- a/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_10to1_11/packets/PlayerPackets1_11.java +++ b/core/src/main/java/nl/matsv/viabackwards/protocol/protocol1_10to1_11/packets/PlayerPackets1_11.java @@ -23,7 +23,7 @@ public class PlayerPackets1_11 { private static final ValueTransformer toNewFloat = new ValueTransformer(Type.FLOAT) { @Override public Float transform(PacketWrapper wrapper, Short inputValue) throws Exception { - return (float) (inputValue / 16); + return inputValue / 15f; } };