Fix deny sound played for mana teletool

This commit is contained in:
Wuzzy 2015-02-16 04:13:45 +01:00
parent bdf22735c6
commit ba752bfa73

View File

@ -158,7 +158,7 @@ if(minetest.get_modpath("mana") ~= nil) then
if(mana.get(user:get_player_name()) >= teletool.settings.cost_mana) then
failure = not teletool.teleport(user, pointed_thing)
if not failure then
failure = mana.subtract(user:get_player_name(), teletool.settings.cost_mana)
failure = not mana.subtract(user:get_player_name(), teletool.settings.cost_mana)
end
else
failure = true