1
0
mirror of https://github.com/Sokomine/cottages.git synced 2026-01-13 20:45:43 +01:00

fixed deprecated fun/local missing in nodes_furniture

This commit is contained in:
Sokomine
2025-12-31 21:25:21 +01:00
parent c0b0f2e3f3
commit 9073c53314

View File

@@ -378,7 +378,7 @@ cottages.allow_sit = function( player, pos )
local pname = player:get_player_name()
if player_api.player_attached[pname] then
-- it is possible that the player is sitting and wants to lie down or get up
d = vector.distance(pos, player:get_pos())
local d = vector.distance(pos, player:get_pos())
if(d > 1.1) then
-- the player is sitting - but not on this object that was right-clicked;
-- someone else is responsible for handling this click
@@ -392,7 +392,7 @@ cottages.allow_sit = function( player, pos )
return
end
local velo = player:get_player_velocity()
local velo = player:get_velocity()
local max_velo = 0.0001;
if vector.length(velo) < max_velo then
return true;