mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 03:57:03 +00:00
Fix Y issue in falling block disguise grid lock
This commit is contained in:
parent
14cf777cab
commit
865326eda7
1 changed files with 3 additions and 4 deletions
|
@ -115,8 +115,7 @@ public class PacketHandlerMovement implements IPacketHandler {
|
|||
|
||||
double y = loc.getBlockY();
|
||||
|
||||
// Force into a multiple of 0.25
|
||||
y += Math.floor((loc.getY() % 1) * 4) / 4D;
|
||||
y += (loc.getY() % 1 >= 0.85 ? 1 : loc.getY() % 1 >= 0.35 ? .5 : 0);
|
||||
|
||||
doubles.write(1, y);
|
||||
doubles.write(2, loc.getBlockZ() + 0.5);
|
||||
|
|
Loading…
Reference in a new issue