Open Dhaiven opened 1 month ago
This does not really check if there is a collision so if there is a slab between the magma block and the player, the player will be burned.
This does not really check if there is a collision so if there is a slab between the magma block and the player, the player will be burned.
Thanks for the feedback, it's fixed
The current implementation only works for collsions on down side. An appropriate solution to the problem would be to detect when colliding with any face of the block, not just one.
Fixed
Introduction
PocketMine don't have function to detect if an entity are above a block. So i add a function and fix the bug with magma block. But there are other bug of this type (with top of cactus...), so i must to be fix in this pr or open an other pr to fix them ?
Relevant issues
Fix #2041
Changes
API changes
Add
Block::onEntityCollide()
Follow-up
Tests
https://github.com/pmmp/PocketMine-MP/assets/55756021/b196bbad-4dce-4118-9a2e-d1546f597df0