fix dependency

master
TenPlus1 2016-06-11 12:07:20 +01:00
parent a23928514b
commit 965be82ea6
2 changed files with 6 additions and 2 deletions

View File

@ -26,4 +26,5 @@ mtfoods?
mush45?
mushroom?
seaplants?
bakedclay?
bakedclay?
3d_armor?

View File

@ -273,7 +273,10 @@ function setSprinting(name, sprinting)
local player = minetest.get_player_by_name(name)
-- is 3d_armor active, then set to armor defaults
local def = armor.def[name] or nil
local def = {}
if armor and armor.def[name] then
def = armor.def[name]
end
pp.speed = def.speed or 1
pp.jump = def.jump or 1