mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-28 02:51:42 +01:00
Non solid blocks should not count as solid
This commit is contained in:
parent
6ce82e2527
commit
9779a77212
@ -135,7 +135,7 @@ public class CollisionUtils {
|
||||
|
||||
// TODO: block collision boxes
|
||||
// TODO: for the moment, always consider a full block
|
||||
if (!block.isAir()) {
|
||||
if (block.isSolid()) {
|
||||
corner.subtract(axis.getX()*amount, axis.getY()*amount, axis.getZ()*amount);
|
||||
|
||||
if (Math.abs(axis.getX()) > 10e-16) {
|
||||
|
Loading…
Reference in New Issue
Block a user