Luacheck fixes.
This commit is contained in:
parent
e8319809a7
commit
2b1bb378e5
@ -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,
|
||||
|
14
polebean.lua
14
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" },
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user