Replace MapIndices with Vector2i (#2228)
* Replace MapIndices with Vector2i * Update da submodule * AA EE II OO U U Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
@@ -139,9 +139,9 @@ namespace Content.Server.Throw
|
||||
|
||||
var throwDuration = ThrownItemComponent.DefaultThrowTime;
|
||||
var mass = 1f;
|
||||
if (thrownEnt.TryGetComponent(out ICollidableComponent physicsComponent))
|
||||
if (thrownEnt.TryGetComponent(out ICollidableComponent collidable))
|
||||
{
|
||||
mass = physicsComponent.Mass;
|
||||
mass = collidable.Mass;
|
||||
}
|
||||
|
||||
var velocityNecessary = distance / throwDuration;
|
||||
|
||||
Reference in New Issue
Block a user