mirror of
https://github.com/joe7575/lumberjack.git
synced 2024-11-19 21:43:46 +01:00
fake player bugfix
This commit is contained in:
parent
8e94e6a2cb
commit
43cf33698a
@ -42,4 +42,4 @@ v0.5 - 17/Apr/2018 - protection bug fixed, further improvements
|
||||
v0.6 - 07/Jan/2020 - screwdriver bugfix
|
||||
v0.7 - 27/May/2020 - ethereal bugfix
|
||||
v0.8 - 29/Jul/2020 - fake player bugfix
|
||||
|
||||
|
||||
|
2
init.lua
2
init.lua
@ -156,7 +156,7 @@ end
|
||||
-- Decrement sapling points
|
||||
--
|
||||
local function after_place_sapling(pos, placer)
|
||||
if placer and placer:is_player and placer:is_player() and placer:get_attribute then
|
||||
if placer and placer.is_player and placer:is_player() and placer.get_attribute then
|
||||
local points = tonumber(placer:get_attribute("lumberjack_sapl_points") or LUMBERJACK_SAPL_POINTS)
|
||||
if points > 0 then
|
||||
placer:set_attribute("lumberjack_sapl_points", tostring(points - 1))
|
||||
|
Loading…
Reference in New Issue
Block a user