Fix sled crash

This commit is contained in:
Splizard 2016-02-01 14:50:20 +13:00
parent 8d78cb6867
commit a6af64f3f1
1 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ local function leave_sled(self, player)
player:get_inventory():add_item("main", "snow:sled")
end
local function sled_rightclick(player)
local function sled_rightclick(self, player)
if self.driver then
return
end
@ -153,7 +153,7 @@ snow.register_on_configuring(function(name, v)
end)
function sled:on_rightclick(player)
on_sled_click(player)
on_sled_click(self, player)
end
function sled:on_activate(staticdata, dtime_s)