mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2025-07-21 17:20:31 +02:00
fix most luacheck warnings
This commit is contained in:
@ -475,8 +475,6 @@ end
|
||||
if Roots == true then -- see settings.txt
|
||||
|
||||
abstract_trunks.grow_roots = function(pos)
|
||||
local twig_size = math.random(1,27)
|
||||
|
||||
local right_here = {x=pos.x , y=pos.y , z=pos.z }
|
||||
local below = {x=pos.x , y=pos.y-1, z=pos.z }
|
||||
local north = {x=pos.x , y=pos.y , z=pos.z+1}
|
||||
|
@ -7,9 +7,6 @@ local mname = "trunks"
|
||||
|
||||
abstract_trunks = {}
|
||||
|
||||
-- support for i18n
|
||||
local S = minetest.get_translator("trunks")
|
||||
|
||||
dofile(minetest.get_modpath("trunks").."/trunks_settings.txt")
|
||||
dofile(minetest.get_modpath("trunks").."/generating.lua")
|
||||
dofile(minetest.get_modpath("trunks").."/nodes.lua")
|
||||
|
@ -45,7 +45,7 @@ for i in pairs(NoDe) do
|
||||
|
||||
if not placer then return end
|
||||
local playername = placer:get_player_name()
|
||||
if minetest.is_protected(pt.above, playername) then
|
||||
if minetest.is_protected(pt.above, playername) then
|
||||
minetest.record_protection_violation(pt.above, playername)
|
||||
return
|
||||
end
|
||||
|
Reference in New Issue
Block a user