diff options
author | Auke Kok <sofar@foo-projects.org> | 2017-03-31 22:14:27 -0700 |
---|---|---|
committer | Auke Kok <sofar@foo-projects.org> | 2017-03-31 22:14:27 -0700 |
commit | 2b1bb378e5bf321ca0ae35a6fe73ea3713045d05 (patch) | |
tree | b5b299d3d9219469b81385bcdb9b91a1af3f696f | |
parent | e8319809a7cf57dc7ed90b4d2fe1927e1f6f1a16 (diff) |
Luacheck fixes.
-rw-r--r-- | .luacheckrc | 1 | ||||
-rw-r--r-- | melon.lua | 6 | ||||
-rw-r--r-- | polebean.lua | 14 | ||||
-rw-r--r-- | pumpkin.lua | 6 |
4 files changed, 22 insertions, 5 deletions
diff --git a/.luacheckrc b/.luacheckrc index fbf3483..15eed66 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -10,5 +10,6 @@ read_globals = { "PseudoRandom", "ItemStack", "intllib", "default", + table = { fields = { "copy", "getn" } } } @@ -101,7 +101,11 @@ minetest.register_craft({ -- minetest.register_node("crops:melon", { description = S("Melon"), - tiles = { "crops_melon_top.png", "crops_melon_bottom.png", "crops_melon.png", "crops_melon.png", "crops_melon.png", "crops_melon.png" }, + tiles = { + "crops_melon_top.png", + "crops_melon_bottom.png", + "crops_melon.png", + }, sunlight_propagates = false, use_texture_alpha = false, walkable = true, diff --git a/polebean.lua b/polebean.lua index 608f6bb..91ec758 100644 --- a/polebean.lua +++ b/polebean.lua @@ -110,8 +110,11 @@ local function crops_beanpole_on_dig(pos, node, digger) minetest.remove_node(top) else -- ouch, this shouldn't happen - print("beanpole on_dig can't handle blocks at to: " .. bottom.x .. "," .. bottom.y .. "," .. bottom.z .. " and " .. top.x .. "," .. top.y .. "," .. top.z) - print("removing a " .. node.name .. " at " .. pos.x .. "," .. pos.y .. "," .. pos.z) + print("beanpole on_dig can't handle blocks at to: " .. + bottom.x .. "," .. bottom.y .. "," .. bottom.z .. + " and " .. top.x .. "," .. top.y .. "," .. top.z) + print("removing a " .. node.name .. " at " .. + pos.x .. "," .. pos.y .. "," .. pos.z) minetest.remove_node(pos) return end @@ -244,7 +247,12 @@ minetest.register_node("crops:beanpole_plant_top_" .. stage, { end minetest.register_abm({ - nodenames = { "crops:beanpole_plant_base_1", "crops:beanpole_plant_base_2", "crops:beanpole_plant_base_3", "crops:beanpole_plant_base_4" }, + nodenames = { + "crops:beanpole_plant_base_1", + "crops:beanpole_plant_base_2", + "crops:beanpole_plant_base_3", + "crops:beanpole_plant_base_4" + }, interval = crops.settings.interval, chance = crops.settings.chance, neighbors = { "group:soil" }, diff --git a/pumpkin.lua b/pumpkin.lua index 1c1c3e0..64ea77d 100644 --- a/pumpkin.lua +++ b/pumpkin.lua @@ -107,7 +107,11 @@ minetest.register_craft({ -- minetest.register_node("crops:pumpkin", { description = S("Pumpkin"), - tiles = { "crops_pumpkin_top.png", "crops_pumpkin_bottom.png", "crops_pumpkin.png", "crops_pumpkin.png", "crops_pumpkin.png", "crops_pumpkin.png" }, + tiles = { + "crops_pumpkin_top.png", + "crops_pumpkin_bottom.png", + "crops_pumpkin.png" + }, sunlight_propagates = false, use_texture_alpha = false, walkable = true, |