Merge pull request #24 from mazes-80/mt-mods-pipeworks-update

Pipeworks: mt-mods pipeworks compatibility
This commit is contained in:
Joachim Stolberg 2024-07-27 22:01:56 +02:00 committed by GitHub
commit 9f75394e16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -137,9 +137,9 @@ end
local function get_points(player) local function get_points(player)
if player and player.is_player and player:is_player() then if player and player.is_player and player:is_player() then
-- Test if we got an automatised tool like nodebreaker from pipeworks -- Passthrough for pipeworks nodebreakers ( assume enough lumberjack points )
-- always allow lumberjack point with this workaroud if not player.get_meta or -- pipeworks standard behavior
if not player.get_meta then getmetatable(player) == "fakelib:player" then -- mt-mods new behavior
return -1,-1 return -1,-1
end end
local meta = player:get_meta() local meta = player:get_meta()