From 0df2753a68f43e8e759e5c201183464e66d24449 Mon Sep 17 00:00:00 2001 From: Ezhh Date: Mon, 25 Jun 2018 21:29:24 +0100 Subject: [PATCH] Make hidden fireflies floodable --- mods/fireflies/init.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mods/fireflies/init.lua b/mods/fireflies/init.lua index ec1d7120..b9263c1a 100644 --- a/mods/fireflies/init.lua +++ b/mods/fireflies/init.lua @@ -25,9 +25,6 @@ minetest.register_node("fireflies:firefly", { }, light_source = 6, floodable = true, - on_flood = function(pos, oldnode, newnode) - minetest.add_item(pos, "fireflies:firefly 1") - end, on_place = function(itemstack, placer, pointed_thing) local player_name = placer:get_player_name() local pos = pointed_thing.above @@ -62,6 +59,7 @@ minetest.register_node("fireflies:hidden_firefly", { buildable_to = true, drop = "", groups = {not_in_creative_inventory = 1}, + floodable = true, on_place = function(itemstack, placer, pointed_thing) local player_name = placer:get_player_name() local pos = pointed_thing.above -- 2.25.1