More luacheck tidying

This commit is contained in:
FaceDeer
2023-09-29 20:06:34 -06:00
parent f537af33bc
commit 058f13f6a4
39 changed files with 43 additions and 81 deletions

View File

@ -168,7 +168,7 @@ minetest.register_node("df_farming:cave_straw", {
description = S("Cave Straw"),
tiles = {"dfcaverns_cave_straw.png"},
is_ground_content = false,
groups = {snappy=3, flammable=4, straw=1, handy=1,hoey=1, compostability=85, flammable=2, fire_encouragement=60, fire_flammability=20, building_block=1, fall_damage_add_percent=-80, enderman_takable=1},
groups = {snappy=3, flammable=4, straw=1, handy=1,hoey=1, compostability=85, fire_encouragement=60, fire_flammability=20, building_block=1, fall_damage_add_percent=-80, enderman_takable=1},
sounds = df_dependencies.sound_leaves(),
_mcl_blast_resistance = 0.5,
_mcl_hardness = 0.5,

View File

@ -76,7 +76,7 @@ for index1 = 1, table.getn(recipes)-1 do
assert(not identical, "recipes " .. recipes[index1].name .. " and " .. recipes[index2].name .. " have identical ingredients!")
end
end
local ingredient_count = {}
--local ingredient_count = {}
--for _, recipe_entry in pairs(recipes) do
-- for _, item in pairs(recipe_entry.recipe) do
-- ingredient_count[item] = (ingredient_count[item] or 0) + 1

View File

@ -167,7 +167,7 @@ local place_seed = function(itemstack, placer, pointed_thing, plantname)
end
end
if not minetest.is_creative_enabled(placer:get_player_name()) then
if take_item and not minetest.is_creative_enabled(placer:get_player_name()) then
itemstack:take_item()
end
return itemstack

View File

@ -78,7 +78,7 @@ local plump_helmet_on_place = function(itemstack, placer, pointed_thing, plantn
end
end
if not minetest.is_creative_enabled(placer:get_player_name()) then
if take_item and not minetest.is_creative_enabled(placer:get_player_name()) then
itemstack:take_item()
end
return itemstack