Make a use for cotton seeds #104
This commit is contained in:
parent
fca2faaeef
commit
c47c6aa54c
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user