mirror of
https://github.com/t-affeldt/climate_api.git
synced 2024-12-22 17:00:36 +01:00
Fix wrong POVA usage
This commit is contained in:
parent
c35cacc08f
commit
de512c172c
@ -38,13 +38,13 @@ elseif mod_pova then
|
|||||||
local override = {}
|
local override = {}
|
||||||
override[effect] = (value * default) - default
|
override[effect] = (value * default) - default
|
||||||
pova.add_override(playername, id, override)
|
pova.add_override(playername, id, override)
|
||||||
pova.do_override(playername)
|
pova.do_override(player)
|
||||||
end
|
end
|
||||||
|
|
||||||
function physics.remove(id, player, effect)
|
function physics.remove(id, player, effect)
|
||||||
local playername = player:get_player_name()
|
local playername = player:get_player_name()
|
||||||
pova.del_override(playername, id)
|
pova.del_override(playername, id)
|
||||||
pova.do_override(playername)
|
pova.do_override(player)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- fallback to vanilla override as last resort
|
-- fallback to vanilla override as last resort
|
||||||
|
Loading…
Reference in New Issue
Block a user