|
|
@ -262,7 +262,6 @@ end |
|
|
|
function lc_liberties.handle_placement(pos) |
|
|
|
function lc_liberties.handle_placement(pos) |
|
|
|
cache = {} |
|
|
|
cache = {} |
|
|
|
--minetest.chat_send_all(tostring(pos)) |
|
|
|
--minetest.chat_send_all(tostring(pos)) |
|
|
|
--nodecore.node_sound(pos, "dug") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local our_stone = check_position(pos) |
|
|
|
local our_stone = check_position(pos) |
|
|
|
if our_stone:sub(1, 1) ~= "S" then |
|
|
|
if our_stone:sub(1, 1) ~= "S" then |
|
|
@ -349,7 +348,11 @@ function lc_liberties.handle_territory_fill(itemstack, placer, pointed_thing) |
|
|
|
local control = placer.get_player_control and placer:get_player_control() |
|
|
|
local control = placer.get_player_control and placer:get_player_control() |
|
|
|
|
|
|
|
|
|
|
|
if (control and (control.aux1 or control.sneak)) then |
|
|
|
if (control and (control.aux1 or control.sneak)) then |
|
|
|
return minetest.item_place(itemstack, placer, pointed_thing) |
|
|
|
local ret = minetest.item_place(itemstack, placer, pointed_thing) |
|
|
|
|
|
|
|
if (pointed_thing and pointed_thing.under) then |
|
|
|
|
|
|
|
nodecore.node_sound(pointed_thing.under, "place") |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
return ret |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
if (pointed_thing and pointed_thing.under) then |
|
|
|
if (pointed_thing and pointed_thing.under) then |
|
|
|