PocketMine-MP icon indicating copy to clipboard operation
PocketMine-MP copied to clipboard

Fix floating point issue

Open GameParrot opened this issue 4 months ago • 5 comments

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)

GameParrot avatar Oct 07 '24 23:10 GameParrot