Skip to content

Commit 866f7b8

Browse files
committedMay 24, 2013
Remove add_firefly() and add_rat()
1 parent 31a74ed commit 866f7b8

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed
 

‎mods/legacy/init.lua

-26
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,6 @@ minetest.register_alias("scorched_stuff", "default:scorched_stuff")
7878
minetest.register_craftitem(":rat", {
7979
description = "Rat",
8080
inventory_image = "rat.png",
81-
on_drop = function(item, dropper, pos)
82-
minetest.add_rat(pos)
83-
item:take_item()
84-
return item
85-
end,
86-
on_place = function(item, dropped, pointed)
87-
pos = minetest.get_pointed_thing_position(pointed, true)
88-
if pos ~= nil then
89-
minetest.add_rat(pos)
90-
item:take_item()
91-
return item
92-
end
93-
end
9481
})
9582

9683
minetest.register_craftitem(":cooked_rat", {
@@ -103,19 +90,6 @@ minetest.register_craftitem(":firefly", {
10390
description = "Firefly",
10491
inventory_image = "firefly.png",
10592
groups = {not_in_creative_inventory=1},
106-
on_drop = function(item, dropper, pos)
107-
minetest.add_firefly(pos)
108-
item:take_item()
109-
return item
110-
end,
111-
on_place = function(item, dropped, pointed)
112-
pos = minetest.get_pointed_thing_position(pointed, true)
113-
if pos ~= nil then
114-
minetest.add_firefly(pos)
115-
item:take_item()
116-
return item
117-
end
118-
end
11993
})
12094

12195
minetest.register_craft({

0 commit comments

Comments
 (0)
Please sign in to comment.