diff options
-rw-r--r-- | not/Trap.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/not/Trap.lua b/not/Trap.lua index 2ebb4d2..84de5b0 100644 --- a/not/Trap.lua +++ b/not/Trap.lua @@ -29,7 +29,7 @@ function Trap:new (direction, x, y, world, imagePath) local mirror = 1 if direction == "left" then mirror = -1 end - local fixture = Trap.__super.addFixture(self, {0, 0, 41 * mirror, 0, 41 * mirror, 18, 0, 18}) + local fixture = self:addFixture({0, 0, 41 * mirror, 0, 41 * mirror, 18, 0, 18}) fixture:setCategory(3) fixture:setMask(1) fixture:setUserData({0, direction}) |