Skip to content

Commit

Permalink
Bluestone: update
Browse files Browse the repository at this point in the history
  • Loading branch information
MultiCraft committed Feb 1, 2024
1 parent 76e3be5 commit 229aa54
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions MODS/bluestone/bluestone_button/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ local S = mesecon.S
local function button_turnoff(pos)
local node = minetest.get_node(pos)
local rules = mesecon.rules.buttonlike_get(node)
minetest.sound_play("mesecons_button_pop", {pos = pos})
minetest.sound_play("mesecons_button_pop", {pos = pos}, true)
mesecon.flipstate(pos, node)
mesecon.receptor_off(pos, rules)
end
Expand Down Expand Up @@ -36,7 +36,7 @@ local function on_place(itemstack, placer, pointed_thing)
end

local function press(pos, node)
minetest.sound_play("mesecons_button_push", {pos = pos})
minetest.sound_play("mesecons_button_push", {pos = pos}, true)
mesecon.flipstate(pos, node)
mesecon.receptor_on(pos, mesecon.rules.buttonlike_get(node))
minetest.get_node_timer(pos):start(1)
Expand Down
1 change: 0 additions & 1 deletion MODS/bluestone/bluestone_torch/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ default.register_torch("bluestone_torch:torch", {
}},
inventory_image = "bluestone_torch.png",
wield_image = "bluestone_torch.png",
wield_image2 = "[combine:32x32:7,0=bluestone_torch.png",
use_texture_alpha = "clip",
light_source = 9,
damage_per_second = 1,
Expand Down
13 changes: 7 additions & 6 deletions MODS/bluestone/mesecons_pistons/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ local function piston_remove_pusher(pos, node, check_falling)
pos = pos,
max_hear_distance = 20,
gain = 0.3
})
}, true)

if check_falling then
minetest.check_for_falling(pusherpos)
Expand All @@ -98,8 +98,9 @@ local function piston_on(pos, node)
local success, stack, oldstack = mesecon.mvps_push(pusher_pos, dir, max_push, meta:get_string("owner"))
if not success then
if stack == "protected" then
meta:set_string("infotext", meta:get_string("infotext") .. "\n" ..
S("Blocked by a protected area on the way!"))
local infotext = meta:get_string("infotext")
local msg = "\n" .. S("Blocked by a protected area on the way!")
meta:set_string("infotext", infotext .. msg)
end
return
end
Expand All @@ -111,7 +112,7 @@ local function piston_on(pos, node)
pos = pos,
max_hear_distance = 20,
gain = 0.3
})
}, true)
mesecon.mvps_move_objects(pusher_pos, dir, oldstack)
end

Expand Down Expand Up @@ -349,7 +350,7 @@ minetest.register_node("mesecons_pistons:piston_normal_on", {
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_normal_off",
after_dig_node = piston_after_dig,
after_destruct = piston_after_dig,
node_box = piston_on_box,
selection_box = piston_on_box,
sounds = default.node_sound_wood_defaults(),
Expand Down Expand Up @@ -428,7 +429,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", {
paramtype2 = "facedir",
is_ground_content = false,
drop = "mesecons_pistons:piston_sticky_off",
after_dig_node = piston_after_dig,
after_destruct = piston_after_dig,
node_box = piston_on_box,
selection_box = piston_on_box,
sounds = default.node_sound_wood_defaults(),
Expand Down
2 changes: 1 addition & 1 deletion MODS/bluestone/mesecons_walllever/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ mesecon.register_node("mesecons_walllever:wall_lever", {
else
mesecon.receptor_off(pos, mesecon.rules.buttonlike_get(node))
end
minetest.sound_play("mesecons_lever", {pos = pos})
minetest.sound_play("mesecons_lever", {pos = pos}, true)
end
}, {
tiles = {
Expand Down

0 comments on commit 229aa54

Please sign in to comment.