mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-16 16:11:06 +01:00
Localize a couple of accidental global variables
This commit is contained in:
parent
54c08aa94a
commit
04593eca08
7 changed files with 7 additions and 8 deletions
|
@ -56,7 +56,7 @@ local msgs = {
|
|||
}
|
||||
}
|
||||
|
||||
mobkills = {
|
||||
local mobkills = {
|
||||
["mobs_mc:zombie"] = "%s was killed by a zombie.",
|
||||
["mobs_mc:blaze"] = "%s was killed by a blaze.",
|
||||
["mobs_mc:slime"] = "%s was killed by a slime.",
|
||||
|
|
|
@ -416,7 +416,7 @@ minetest.register_node("mcl_dispensers:dispenser_down", down_def)
|
|||
|
||||
-- Up dispenser
|
||||
-- The up dispenser is almost identical to the down dispenser , it only differs in textures
|
||||
up_def = table.copy(down_def)
|
||||
local up_def = table.copy(down_def)
|
||||
up_def.description = "Upwards-Facing Dispenser"
|
||||
up_def.tiles = {
|
||||
"mcl_dispensers_dispenser_front_vertical.png", "default_furnace_bottom.png",
|
||||
|
|
|
@ -137,7 +137,7 @@ minetest.register_node("mcl_droppers:dropper_down", down_def)
|
|||
|
||||
-- Up dropper
|
||||
-- The up dropper is almost identical to the down dropper, it only differs in textures
|
||||
up_def = table.copy(down_def)
|
||||
local up_def = table.copy(down_def)
|
||||
up_def.description = "Upwards-Facing Dropper"
|
||||
up_def.tiles = {
|
||||
"mcl_droppers_dropper_front_vertical.png", "default_furnace_bottom.png",
|
||||
|
|
|
@ -63,8 +63,8 @@ function mcl_doors:register_door(name, def)
|
|||
|
||||
minetest.register_craftitem(name, {
|
||||
description = def.description,
|
||||
_doc_items_longdesc = def._doc_items_longdesc,
|
||||
_doc_items_usagehelp = def._doc_items_usagehelp,
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = usagehelp,
|
||||
inventory_image = def.inventory_image,
|
||||
stack_max = 64,
|
||||
groups = { mesecon_conductor_craftable = 1 },
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
-- Minetest 0.4 mod: default
|
||||
-- See README.txt for licensing and other information.
|
||||
local init = os.clock()
|
||||
flower_tmp={}
|
||||
|
||||
-- Simple flower template
|
||||
local smallflowerlongdesc = "This is a small flower. Small flowers are mainly used for dye production and can also be potted."
|
||||
|
|
|
@ -15,7 +15,7 @@ local records = #recorddata
|
|||
|
||||
for r=1, records do
|
||||
local doc = false
|
||||
local entryname, longdesc, useahelp
|
||||
local entryname, longdesc, usagehelp
|
||||
if r == 1 then
|
||||
doc = true
|
||||
entryname = "Music Disc"
|
||||
|
|
|
@ -581,7 +581,7 @@ minetest.register_ore({
|
|||
end
|
||||
|
||||
-- Rarely replace stone with stone monster eggs
|
||||
local scarcity
|
||||
local monster_egg_scarcity
|
||||
if mg_name == "v6" then
|
||||
monster_egg_scarcity = 28 * 28 * 28
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue