suicide move rejection working (though, needs more pizzaz)

pull/2/head
capitalthree 1 year ago
parent 0e7cc27f6d
commit 7fda1cf06a
  1. 5
      rules.lua

@ -219,8 +219,9 @@ function lc_liberties.handle_placement(pos)
else
local captures = check_captures(pos)
if captures.capture then
minetest.chat_send_all("You gotcher self a suicide move right there! size: "..#(captures.stones))
-- todo: replace with itemstack of one stone
local stone = minetest.get_node(pos).name
nodecore.set_loud(pos, {name = "air"})
nodecore.item_eject(pos, stone)
end
end
end

Loading…
Cancel
Save