summaryrefslogtreecommitdiffhomepage
path: root/world.lua
diff options
context:
space:
mode:
Diffstat (limited to 'world.lua')
-rw-r--r--world.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/world.lua b/world.lua
index 11fffac..80e7210 100644
--- a/world.lua
+++ b/world.lua
@@ -177,7 +177,7 @@ function World.beginContact(a, b, coll)
print(b:getUserData().name .. " is not in air")
b:getUserData().inAir = false
b:getUserData().jumpdouble = true
- w:createEffect("land", b:getBody():getX()-12, b:getBody():getY()-15)
+ b:getUserData().world:createEffect("land", b:getBody():getX()-12, b:getBody():getY()-15)
end
end