diff --git a/code/collision.lua b/code/collision.lua index 7e22aa7..13ce209 100644 --- a/code/collision.lua +++ b/code/collision.lua @@ -70,7 +70,7 @@ function Collision:PlaceAt(x, y) end function Collision:ContainsPoint(x, y) - return x => self.from.x and + return x >= self.from.x and y >= self.from.y and x <= self.to.x and y <= self.to.y