mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-07-12 21:40:29 +02:00
More luacheck tidying
This commit is contained in:
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user