Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make hidden fireflies floodable
  • Loading branch information
Ezhh committed Jun 25, 2018
1 parent 0ea6065 commit 0df2753
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mods/fireflies/init.lua
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0df2753

Please sign in to comment.