mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-20 01:51:06 +01:00
Removed some unnessary code
This commit is contained in:
parent
a153e5bc33
commit
64f810ac76
1 changed files with 32 additions and 33 deletions
|
@ -1,7 +1,6 @@
|
||||||
local S = minetest.get_translator(minetest.get_current_modname())
|
local S = minetest.get_translator(minetest.get_current_modname())
|
||||||
local mod_mcl_core = minetest.get_modpath("mcl_core")
|
local mod_mcl_core = minetest.get_modpath("mcl_core")
|
||||||
local mod_mclx_core = minetest.get_modpath("mclx_core")
|
local mod_mclx_core = minetest.get_modpath("mclx_core")
|
||||||
local mod_mobs_mc = minetest.get_modpath("mobs_mc")
|
|
||||||
local has_awards = minetest.get_modpath("awards")
|
local has_awards = minetest.get_modpath("awards")
|
||||||
|
|
||||||
local function sound_place(itemname, pos)
|
local function sound_place(itemname, pos)
|
||||||
|
@ -121,7 +120,6 @@ minetest.register_craft({
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Fish Buckets
|
-- Fish Buckets
|
||||||
if mod_mobs_mc then
|
|
||||||
fish_names = {
|
fish_names = {
|
||||||
{ techname = "cod", name = "Cod" },
|
{ techname = "cod", name = "Cod" },
|
||||||
{ techname = "salmon", name = "Salmon" },
|
{ techname = "salmon", name = "Salmon" },
|
||||||
|
@ -143,14 +141,15 @@ if mod_mobs_mc then
|
||||||
usagehelp = S("Place it to empty the bucket and place a @1. Obtain by right clicking on a @2 fish with a bucket of water.", S(fish.name), S(fish.name)),
|
usagehelp = S("Place it to empty the bucket and place a @1. Obtain by right clicking on a @2 fish with a bucket of water.", S(fish.name), S(fish.name)),
|
||||||
tt_help = S("Places a water source and a @1 fish.", S(fish.name)),
|
tt_help = S("Places a water source and a @1 fish.", S(fish.name)),
|
||||||
extra_check = function(pos, placer)
|
extra_check = function(pos, placer)
|
||||||
local nn = minetest.get_node(pos).name
|
|
||||||
local dim = mcl_worlds.pos_to_dimension(pos)
|
local dim = mcl_worlds.pos_to_dimension(pos)
|
||||||
if dim == "nether" then
|
if dim == "nether" then
|
||||||
minetest.sound_play("fire_extinguish_flame", {pos = pos, gain = 0.25, max_hear_distance = 16}, true)
|
minetest.sound_play("fire_extinguish_flame", {pos = pos, gain = 0.25, max_hear_distance = 16}, true)
|
||||||
return false, true
|
return false, true
|
||||||
|
else
|
||||||
|
return true, true
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
minetest.register_alias("mcl_fishing:bucket_" .. fish.techname, "mcl_buckets:bucket_" .. fish.techname)
|
minetest.register_alias("mcl_fishing:bucket_" .. fish.techname, "mcl_buckets:bucket_" .. fish.techname)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
Loading…
Reference in a new issue