mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-21 14:53:16 -04:00
Applying HybridDog recommendation
change global carpet.wool to local added_wool
This commit is contained in:
parent
4eb2873dab
commit
fa1da4a299
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ function carpet.register(def)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Add carpet from wool mod
|
-- Add carpet from wool mod
|
||||||
carpet.wool = {
|
local added_wool = {
|
||||||
{"white", "White"},
|
{"white", "White"},
|
||||||
{"grey", "Grey"},
|
{"grey", "Grey"},
|
||||||
{"black", "Black"},
|
{"black", "Black"},
|
||||||
|
@ -58,7 +58,7 @@ carpet.wool = {
|
||||||
{"dark_green", "Dark Green"},
|
{"dark_green", "Dark Green"},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, row in ipairs(carpet.wool) do
|
for _, row in ipairs(added_wool) do
|
||||||
local name = row[1]
|
local name = row[1]
|
||||||
local desc = row[2]
|
local desc = row[2]
|
||||||
carpet.register({
|
carpet.register({
|
||||||
|
|
Loading…
Add table
Reference in a new issue