Change item.lua stuff into namespaced table
This commit is contained in:
parent
bc414719f1
commit
ee29de43b6
@ -49,7 +49,7 @@ function weapon.generate_description(weapon_data)
|
||||
|
||||
for i,v in ipairs(text) do
|
||||
if i == 0 then
|
||||
color_text = core.colorize(item.title_color, v)
|
||||
color_text = core.colorize(rangedweapons.colors.title_color, v)
|
||||
else
|
||||
color_text = core.colorize(rangedweapons.colors.white, v)
|
||||
end
|
||||
|
@ -5,7 +5,6 @@ local weapon_item_name = rangedweapons.mod_name .. ":" .. weapon_name
|
||||
|
||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||
|
||||
local item = dofile(modpath.."/item.lua")
|
||||
local weapon = dofile(modpath.."/weapon.lua")
|
||||
local handgun = dofile(modpath.."/weapons".."/handgun".."/handgun.lua")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user