Fix #1414
This commit is contained in:
parent
a14959ac70
commit
97424f7d0a
|
@ -1,6 +1,6 @@
|
||||||
local S = minetest.get_translator("mcl_boats")
|
local S = minetest.get_translator("mcl_boats")
|
||||||
|
|
||||||
local boat_visual_size = {x = 3, y = 3, z = 3}
|
local boat_visual_size = {x = 1, y = 1, z = 1}
|
||||||
local paddling_speed = 22
|
local paddling_speed = 22
|
||||||
local boat_y_offset = 0.35
|
local boat_y_offset = 0.35
|
||||||
local boat_y_offset_ground = boat_y_offset + 0.6
|
local boat_y_offset_ground = boat_y_offset + 0.6
|
||||||
|
|
Binary file not shown.
|
@ -227,6 +227,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
if mcl_skins.skin_count <= 6 then
|
if mcl_skins.skin_count <= 6 then
|
||||||
-- Change skin immediately if there are not many skins
|
-- Change skin immediately if there are not many skins
|
||||||
mcl_skins.cycle_skin(player)
|
mcl_skins.cycle_skin(player)
|
||||||
|
if player:get_attach() ~= nil then
|
||||||
|
mcl_player.player_set_animation(player, "sit")
|
||||||
|
end
|
||||||
else
|
else
|
||||||
-- Show skin selection formspec otherwise
|
-- Show skin selection formspec otherwise
|
||||||
mcl_skins.show_formspec(player:get_player_name())
|
mcl_skins.show_formspec(player:get_player_name())
|
||||||
|
@ -294,4 +297,3 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.log("action", "[mcl_skins] Mod initialized with "..mcl_skins.skin_count.." custom skin(s)")
|
minetest.log("action", "[mcl_skins] Mod initialized with "..mcl_skins.skin_count.." custom skin(s)")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue