Compare commits

..

No commits in common. "6822dfd9c4dcfa2d8c533090906a956a6ac1e10d" and "e50d742a8a34aa746ac311cb8aa160025ad050a2" have entirely different histories.

3 changed files with 4 additions and 7 deletions

View File

@ -49,7 +49,7 @@ local function update_sfinv(name)
end)
end
if creative.is_50 then
if is_50 then
privs_definition = {
description = privs_description,
give_to_singleplayer = false,
@ -186,7 +186,7 @@ function creative.update_creative_inventory(player_name, tab_content)
local lang = minetest.settings:get("language") or "en"
local player_info = minetest.get_player_information(player_name)
if creative.is_53 then
if is_53 then
if player_info and player_info.lang_code ~= "" then
lang = player_info.lang_code
end

View File

@ -757,7 +757,7 @@ function doors.register_fencegate(name, def)
local fence_closed = table.copy(fence)
fence_closed.mesh = "doors_fencegate_closed.obj"
fence_closed.gate = name .. "_open"
fence_closed.sound = (is_54 and {"doors_fencegate_close"} or "doors_fencegate_close")
fence_closed.sound = "doors_fencegate_open"
fence_closed.collision_box = {
type = "fixed",
fixed = {-1/2, -1/2, -1/4, 1/2, 1/2, 1/4},
@ -766,7 +766,7 @@ function doors.register_fencegate(name, def)
local fence_open = table.copy(fence)
fence_open.mesh = "doors_fencegate_open.obj"
fence_open.gate = name .. "_closed"
fence_open.sound = (is_54 and {"doors_fencegate_open"} or "doors_fencegate_open")
fence_open.sound = "doors_fencegate_close"
fence_open.groups.not_in_creative_inventory = 1
fence_open.collision_box = {
type = "fixed",

View File

@ -45,7 +45,6 @@ minetest.register_tool("fireflies:bug_net", {
description = "Bug Net",
inventory_image = "fireflies_bugnet.png",
on_use = function(itemstack, player, pointed_thing)
if not player then return itemstack end
if not pointed_thing or pointed_thing.type ~= "node" or
minetest.is_protected(pointed_thing.under, player:get_player_name()) then
return
@ -105,8 +104,6 @@ minetest.register_node("fireflies:firefly_bottle", {
},
sounds = default.node_sound_glass_defaults(),
on_rightclick = function(pos, node, player, itemstack, pointed_thing)
if not player then return itemstack end
local lower_pos = {x = pos.x, y = pos.y + 1, z = pos.z}
if minetest.is_protected(pos, player:get_player_name()) or
minetest.get_node(lower_pos).name ~= "air" then