Make hidden fireflies floodable
authorEzhh <owlecho@live.com>
Mon, 25 Jun 2018 20:29:24 +0000 (21:29 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Jun 2018 20:29:24 +0000 (21:29 +0100)
mods/fireflies/init.lua

index ec1d71206a87a43bf84f3d96b17377678d5b8d3d..b9263c1af4f9c15a4b49017313e735d98f0ed582 100644 (file)
@@ -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