From b941f7b4311b45d087ef0f0b6962a72318e8d2b6 Mon Sep 17 00:00:00 2001 From: mazes-80 <1608580+mazes-80@users.noreply.github.com> Date: Sat, 27 Jul 2024 19:10:47 +0200 Subject: [PATCH] Pipeworks: mt-mods pipeworks compatibility --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index c50fae0..66f8610 100644 --- a/init.lua +++ b/init.lua @@ -137,9 +137,9 @@ end local function get_points(player) if player and player.is_player and player:is_player() then - -- Test if we got an automatised tool like nodebreaker from pipeworks - -- always allow lumberjack point with this workaroud - if not player.get_meta then + -- Passthrough for pipeworks nodebreakers ( assume enough lumberjack points ) + if not player.get_meta or -- pipeworks standard behavior + getmetatable(player) == "fakelib:player" then -- mt-mods new behavior return -1,-1 end local meta = player:get_meta()