Update init.lua

master
danil275487 2021-05-07 11:12:39 +03:00
parent cba41bbc9c
commit d856dfcf35
1 changed files with 8 additions and 1 deletions

View File

@ -36,4 +36,11 @@ end)
-- Disable sneak (There's also a configuration in minetest.conf to make sneaking speed identical to normal walking)
minetest.register_on_joinplayer(function(player)
player:set_physics_override({ sneak = false })
end)
end)
-- Make items drop one-by-one instead of whole stack
local old_drop = minetest.item_drop
minetest.item_drop = function(itemstack, dropper, pos)
old_drop(itemstack:take_item(1), dropper, pos)
return itemstack
end