mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-25 02:10:23 +01:00
local-ize yet a few more variables
This commit is contained in:
parent
c0ce62dacf
commit
072f78a360
@ -112,14 +112,14 @@ for zp = 0, 1 do
|
|||||||
local pname = xm..xp..ym..yp..zm..zp
|
local pname = xm..xp..ym..yp..zm..zp
|
||||||
local pgroups = ""
|
local pgroups = ""
|
||||||
|
|
||||||
|
local image = nil
|
||||||
|
local pipedesc = "Pipe segment"
|
||||||
|
local pgroups = {snappy=3, pipe=1}
|
||||||
|
|
||||||
if pname ~= "110000" then
|
if pname ~= "110000" then
|
||||||
pgroups = {snappy=3, pipe=1, not_in_creative_inventory=1}
|
pgroups = {snappy=3, pipe=1, not_in_creative_inventory=1}
|
||||||
pipedesc = "Pipe segment (empty, "..pname..")... You hacker, you."
|
pipedesc = "Pipe segment (empty, "..pname..")... You hacker, you."
|
||||||
image = "pipeworks_plain.png"
|
image = "pipeworks_plain.png"
|
||||||
else
|
|
||||||
pgroups = {snappy=3, pipe=1}
|
|
||||||
pipedesc = "Pipe segment"
|
|
||||||
image = nil
|
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node("pipeworks:pipe_"..pname.."_empty", {
|
minetest.register_node("pipeworks:pipe_"..pname.."_empty", {
|
||||||
|
Loading…
Reference in New Issue
Block a user