Fix EntityProjectile

This commit is contained in:
TheMode 2021-07-26 11:53:30 +02:00
parent 87e4d84e4a
commit aaa71f4e9a
2 changed files with 2 additions and 2 deletions

View File

@ -463,7 +463,7 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
newVelocity = physicsResult.newVelocity();
} else {
newVelocity = deltaPos;
newPosition = position.add(currentVelocity).div(tps);
newPosition = position.add(currentVelocity.div(20));
}
// World border collision

View File

@ -152,7 +152,7 @@ public class EntityProjectile extends Entity {
} else {
pos = pos.add(direction);
}
Block block = instance.getBlock(pos.sub(0, 1, 0));
Block block = instance.getBlock(pos);
if (!block.isAir() && !block.isLiquid()) {
teleport(pos);
return true;