Fix mobs not dropping items when falling down. (#5771)
It checked action blockers, meaning it would never actually drop the items.
This commit is contained in:
committed by
GitHub
parent
bd51b15af8
commit
36c5ab551d
@@ -21,7 +21,7 @@ public class StandingStateSystem : EntitySystem
|
|||||||
|
|
||||||
foreach (var heldItem in hands.GetAllHeldItems())
|
foreach (var heldItem in hands.GetAllHeldItems())
|
||||||
{
|
{
|
||||||
if (!hands.Drop(heldItem.Owner))
|
if (!hands.Drop(heldItem.Owner, false))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
var worldRotation = EntityManager.GetComponent<TransformComponent>(uid).WorldRotation.ToVec();
|
var worldRotation = EntityManager.GetComponent<TransformComponent>(uid).WorldRotation.ToVec();
|
||||||
|
|||||||
Reference in New Issue
Block a user