Fix throwing in space.

This commit is contained in:
Pieter-Jan Briers
2020-07-08 18:28:59 +02:00
parent e815de7563
commit 023fd60054
6 changed files with 17 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
#nullable enable
using System.Diagnostics.CodeAnalysis;
using Content.Shared.GameObjects.Components.Items;
using Content.Shared.GameObjects.Components.Movement;
using Content.Shared.Physics;
using Robust.Shared.Configuration;
@@ -129,7 +130,7 @@ namespace Content.Shared.GameObjects.EntitySystems
// TODO: Item check.
var touching = ((collider.CollisionMask & otherCollider.CollisionLayer) != 0x0
|| (otherCollider.CollisionMask & collider.CollisionLayer) != 0x0) // Ensure collision
&& true; // !entity.HasComponent<ItemComponent>(); // This can't be an item
&& !entity.HasComponent<IItemComponent>(); // This can't be an item
if (touching)
{