1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 18:20:36 +01:00

Merge TenPlus1's screwdriver and new minetest.conf.example

This commit is contained in:
LeMagnesium 2014-12-14 23:46:05 +01:00
parent adc99333fb
commit 87f013bf28
2 changed files with 3 additions and 7 deletions

View File

@ -17,8 +17,6 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode)
end end
local pos = pointed_thing.under local pos = pointed_thing.under
local keys = user:get_player_control()
local player_name = user:get_player_name()
if minetest.is_protected(pos, user:get_player_name()) then if minetest.is_protected(pos, user:get_player_name()) then
minetest.record_protection_violation(pos, user:get_player_name()) minetest.record_protection_violation(pos, user:get_player_name())
@ -55,7 +53,6 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode)
itemstack:add_wear(65535 / (USES - 1)) itemstack:add_wear(65535 / (USES - 1))
end end
itemstack:set_wear(item_wear)
return itemstack return itemstack
end end
@ -82,7 +79,6 @@ minetest.register_craft({
} }
}) })
-- Compatibility with original mod
minetest.register_alias("screwdriver:screwdriver1", "screwdriver:screwdriver") minetest.register_alias("screwdriver:screwdriver1", "screwdriver:screwdriver")
minetest.register_alias("screwdriver:screwdriver2", "screwdriver:screwdriver") minetest.register_alias("screwdriver:screwdriver2", "screwdriver:screwdriver")
minetest.register_alias("screwdriver:screwdriver3", "screwdriver:screwdriver") minetest.register_alias("screwdriver:screwdriver3", "screwdriver:screwdriver")