mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-30 21:17:53 +01:00
Fix EntityProjectile
This commit is contained in:
parent
87e4d84e4a
commit
aaa71f4e9a
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user