mirror of
https://github.com/Splizard/minetest-mod-snow.git
synced 2024-12-28 23:40:17 +01:00
Fix sled crash
This commit is contained in:
parent
8d78cb6867
commit
a6af64f3f1
@ -113,7 +113,7 @@ local function leave_sled(self, player)
|
|||||||
player:get_inventory():add_item("main", "snow:sled")
|
player:get_inventory():add_item("main", "snow:sled")
|
||||||
end
|
end
|
||||||
|
|
||||||
local function sled_rightclick(player)
|
local function sled_rightclick(self, player)
|
||||||
if self.driver then
|
if self.driver then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
@ -153,7 +153,7 @@ snow.register_on_configuring(function(name, v)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
function sled:on_rightclick(player)
|
function sled:on_rightclick(player)
|
||||||
on_sled_click(player)
|
on_sled_click(self, player)
|
||||||
end
|
end
|
||||||
|
|
||||||
function sled:on_activate(staticdata, dtime_s)
|
function sled:on_activate(staticdata, dtime_s)
|
||||||
|
Loading…
Reference in New Issue
Block a user