Make a use for cotton seeds #104

This commit is contained in:
Joachim Stolberg 2022-11-19 21:20:03 +01:00
parent fca2faaeef
commit c47c6aa54c
2 changed files with 2 additions and 9 deletions

View File

@ -431,4 +431,5 @@ if minetest.global_exists("farming") then
techage.add_grinder_recipe({input="farming:seed_rice 6", output="farming:rice_flour"}, true)
techage.add_grinder_recipe({input="farming:oat 3", output="farming:flour"}, true)
techage.add_grinder_recipe({input="farming:seed_oat 6", output="farming:flour"}, true)
techage.add_grinder_recipe({input="farming:seed_cotton 3", output="basic_materials:oil_extract"}, true)
end

View File

@ -29,16 +29,8 @@ function techage.register_stone_gravel_pair(stone_name, gravel_name)
end
-- Pipeworks uses a fakeplayer based on the owner of the nodebraker.
-- Since the fakeplayer position differs from the real player position,
-- this can be used to detect the fakeplayer.
local function is_real_player(player)
if minetest.is_player(player) then
local obj = minetest.get_player_by_name(player:get_player_name())
if obj then
return vector.equals(obj:get_pos(), player:get_pos())
end
end
return false
return minetest.is_player(player) and not player.is_fake_player
end
local function handler(player_name, node, itemstack, digparams)