mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-02 08:10:36 +02:00
Change " .. " to ".."
This commit is contained in:
@ -16,8 +16,8 @@ local LATEST_SERIALIZATION_VERSION = 1
|
||||
wrench = {}
|
||||
|
||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||
dofile(modpath .. "/support.lua")
|
||||
dofile(modpath .. "/technic.lua")
|
||||
dofile(modpath.."/support.lua")
|
||||
dofile(modpath.."/technic.lua")
|
||||
|
||||
-- Boilerplate to support localized strings if intllib mod is installed.
|
||||
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
|
||||
@ -31,7 +31,7 @@ local function get_meta_type(name, metaname)
|
||||
end
|
||||
|
||||
local function get_pickup_name(name)
|
||||
return "wrench:picked_up_" .. (name:gsub(":", "_"))
|
||||
return "wrench:picked_up_"..(name:gsub(":", "_"))
|
||||
end
|
||||
|
||||
local function restore(pos, placer, itemstack)
|
||||
@ -73,7 +73,7 @@ for name, info in pairs(wrench.registered_nodes) do
|
||||
newdef.on_construct = nil
|
||||
newdef.on_destruct = nil
|
||||
newdef.after_place_node = restore
|
||||
minetest.register_node(":" .. get_pickup_name(name), newdef)
|
||||
minetest.register_node(":"..get_pickup_name(name), newdef)
|
||||
end
|
||||
end
|
||||
|
||||
@ -120,7 +120,7 @@ minetest.register_tool("wrench:wrench", {
|
||||
if owner and owner ~= placer:get_player_name() then
|
||||
minetest.log("action", placer:get_player_name() ..
|
||||
" tried to pick up a owned node belonging to " ..
|
||||
owner .. " at " ..
|
||||
owner.." at " ..
|
||||
minetest.pos_to_string(pos))
|
||||
return
|
||||
end
|
||||
|
@ -381,11 +381,11 @@ local chest_mark_colors = {
|
||||
}
|
||||
|
||||
for i = 1, 15 do
|
||||
wrench:register_node("technic:gold_chest" .. chest_mark_colors[i], {
|
||||
wrench:register_node("technic:gold_chest"..chest_mark_colors[i], {
|
||||
lists = { "main" },
|
||||
metas = { infotext = STRING, formspec = STRING },
|
||||
})
|
||||
wrench:register_node("technic:gold_locked_chest" .. chest_mark_colors[i], {
|
||||
wrench:register_node("technic:gold_locked_chest"..chest_mark_colors[i], {
|
||||
lists = { "main" },
|
||||
metas = { infotext = STRING, owner = STRING, formspec = STRING },
|
||||
owned = true,
|
||||
@ -396,14 +396,14 @@ if minetest.get_modpath("technic") then
|
||||
for tier, _ in pairs(technic.machines) do
|
||||
local ltier = tier:lower()
|
||||
for i = 0, 8 do
|
||||
wrench:register_node("technic:" .. ltier .. "_battery_box" .. i, {
|
||||
wrench:register_node("technic:"..ltier.."_battery_box"..i, {
|
||||
lists = { "src", "dst" },
|
||||
metas = {
|
||||
infotext = STRING,
|
||||
formspec = STRING,
|
||||
[tier .. "_EU_demand"] = INT,
|
||||
[tier .. "_EU_supply"] = INT,
|
||||
[tier .. "_EU_input"] = INT,
|
||||
[tier.."_EU_demand"] = INT,
|
||||
[tier.."_EU_supply"] = INT,
|
||||
[tier.."_EU_input"] = INT,
|
||||
internal_EU_charge = INT,
|
||||
last_side_shown = INT
|
||||
},
|
||||
|
Reference in New Issue
Block a user