mirror of
https://github.com/joe7575/lumberjack.git
synced 2024-11-25 16:33:44 +01:00
Merge pull request #24 from mazes-80/mt-mods-pipeworks-update
Pipeworks: mt-mods pipeworks compatibility
This commit is contained in:
commit
9f75394e16
6
init.lua
6
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()
|
||||
|
Loading…
Reference in New Issue
Block a user