From 866f7b841cdbc87716d6a3c9c3bcda80ed2ff59f Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Sat, 25 May 2013 01:10:32 +0200 Subject: [PATCH] Remove add_firefly() and add_rat() --- mods/legacy/init.lua | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/mods/legacy/init.lua b/mods/legacy/init.lua index 10e32f18..1cb99ef5 100644 --- a/mods/legacy/init.lua +++ b/mods/legacy/init.lua @@ -78,19 +78,6 @@ minetest.register_alias("scorched_stuff", "default:scorched_stuff") minetest.register_craftitem(":rat", { description = "Rat", inventory_image = "rat.png", - on_drop = function(item, dropper, pos) - minetest.add_rat(pos) - item:take_item() - return item - end, - on_place = function(item, dropped, pointed) - pos = minetest.get_pointed_thing_position(pointed, true) - if pos ~= nil then - minetest.add_rat(pos) - item:take_item() - return item - end - end }) minetest.register_craftitem(":cooked_rat", { @@ -103,19 +90,6 @@ minetest.register_craftitem(":firefly", { description = "Firefly", inventory_image = "firefly.png", groups = {not_in_creative_inventory=1}, - on_drop = function(item, dropper, pos) - minetest.add_firefly(pos) - item:take_item() - return item - end, - on_place = function(item, dropped, pointed) - pos = minetest.get_pointed_thing_position(pointed, true) - if pos ~= nil then - minetest.add_firefly(pos) - item:take_item() - return item - end - end }) minetest.register_craft({ -- 2.25.1