diff options
| -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, | 
