1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 01:30:38 +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

@ -21,4 +21,4 @@
#enable_tnt = <true in singleplayer, false in multiplayer>
# The radius of a TNT explosion
#tnt_radius = 3
#tnt_radius = 3

View File

@ -17,8 +17,6 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode)
end
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
minetest.record_protection_violation(pos, user:get_player_name())
@ -47,15 +45,14 @@ local function screwdriver_handler(itemstack, user, pointed_thing, mode)
elseif mode == ROTATE_AXIS then
n = nextrange(axisdir, 5) * 4
end
node.param2 = n
minetest.swap_node(pos, node)
if not minetest.setting_getbool("creative_mode") then
itemstack:add_wear(65535 / (USES - 1))
end
itemstack:set_wear(item_wear)
return itemstack
end
@ -82,7 +79,6 @@ minetest.register_craft({
}
})
-- Compatibility with original mod
minetest.register_alias("screwdriver:screwdriver1", "screwdriver:screwdriver")
minetest.register_alias("screwdriver:screwdriver2", "screwdriver:screwdriver")
minetest.register_alias("screwdriver:screwdriver3", "screwdriver:screwdriver")