GridCoordinates API changes.

This commit is contained in:
Acruid
2020-01-25 01:39:14 -08:00
parent a86363a6d2
commit a692899f5b
8 changed files with 14 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Linq;
using Content.Server.GameObjects.Components.Mobs;
using Content.Server.GameObjects.Components.Timing;
@@ -408,7 +408,7 @@ namespace Content.Server.GameObjects.EntitySystems
// Check if ClickLocation is in object bounds here, if not lets log as warning and see why
if (attacked.TryGetComponent(out ICollidableComponent collideComp))
{
if (!collideComp.WorldAABB.Contains(coordinates.ToWorld(_mapManager).Position))
if (!collideComp.WorldAABB.Contains(coordinates.ToMapPos(_mapManager)))
{
Logger.WarningS("system.interaction",
$"Player {player.Name} clicked {attacked.Name} outside of its bounding box component somehow");