PocketMine-MP
PocketMine-MP copied to clipboard
Fix floating point issue
Introduction
Fixes blocks not placing right next to the player at certain positions
Relevant issues
Currently you cannot place blocks right next to yourself at some positions due to floating point issues
Changes
API changes
No significant API changes
Behavioural changes
Might affect some extremely precise checks
Backwards compatibility
No Backwards compatibility issues
Tests
I tested this PR by doing the following (tick all that apply):
- [ ] Writing PHPUnit tests (commit these in the
tests/phpunit
folder) - [x] Playtesting using a Minecraft client (provide screenshots or a video)
- [ ] Writing a test plugin (provide the code and sample output)
- [ ] Other (provide details)