From 7fda1cf06a251d36f001b35f99b417da75d2c874 Mon Sep 17 00:00:00 2001 From: capitalthree Date: Mon, 20 Nov 2023 22:35:46 -0600 Subject: [PATCH] suicide move rejection working (though, needs more pizzaz) --- rules.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rules.lua b/rules.lua index 820bd80..3cccb3f 100644 --- a/rules.lua +++ b/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