mirror of
https://github.com/mt-mods/unifieddyes.git
synced 2024-11-22 23:43:45 +01:00
local-ize a few variables/tables
This commit is contained in:
parent
9ea6469506
commit
08fe211bde
0
gentextures-jpg.sh
Executable file → Normal file
0
gentextures-jpg.sh
Executable file → Normal file
0
gentextures.sh
Executable file → Normal file
0
gentextures.sh
Executable file → Normal file
8
init.lua
8
init.lua
@ -170,7 +170,7 @@ minetest.register_craft( {
|
|||||||
-- Brightness levels in the textures are 33% ("dark"), 66% ("medium"),
|
-- Brightness levels in the textures are 33% ("dark"), 66% ("medium"),
|
||||||
-- 100% ("full", but not so-named), and 150% ("light").
|
-- 100% ("full", but not so-named), and 150% ("light").
|
||||||
|
|
||||||
HUES = {
|
local HUES = {
|
||||||
"red",
|
"red",
|
||||||
"orange",
|
"orange",
|
||||||
"yellow",
|
"yellow",
|
||||||
@ -185,7 +185,7 @@ HUES = {
|
|||||||
"redviolet"
|
"redviolet"
|
||||||
}
|
}
|
||||||
|
|
||||||
HUES2 = {
|
local HUES2 = {
|
||||||
"Red",
|
"Red",
|
||||||
"Orange",
|
"Orange",
|
||||||
"Yellow",
|
"Yellow",
|
||||||
@ -203,8 +203,8 @@ HUES2 = {
|
|||||||
|
|
||||||
for i = 1, 12 do
|
for i = 1, 12 do
|
||||||
|
|
||||||
hue = HUES[i]
|
local hue = HUES[i]
|
||||||
hue2 = HUES2[i]
|
local hue2 = HUES2[i]
|
||||||
|
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
|
0
listcolors.sh
Executable file → Normal file
0
listcolors.sh
Executable file → Normal file
Loading…
Reference in New Issue
Block a user