From 7ac18862d79063647dc29b948cff8568d9f2202a Mon Sep 17 00:00:00 2001 From: MewMew Date: Tue, 21 Apr 2020 10:11:10 +0200 Subject: [PATCH] fixes --- modules/force_health_booster.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/force_health_booster.lua b/modules/force_health_booster.lua index b9d512fb..0209ae78 100644 --- a/modules/force_health_booster.lua +++ b/modules/force_health_booster.lua @@ -18,7 +18,7 @@ Global.register( end ) -function set_health_modifier(force_index, modifier) +function Public.set_health_modifier(force_index, modifier) if not game.forces[force_index] then return end if not modifier then return end if not fhb[force_index] then fhb[force_index] = {} end @@ -72,4 +72,6 @@ local Event = require 'utils.event' Event.on_init(on_init) Event.add(defines.events.on_entity_damaged, on_entity_damaged) Event.add(defines.events.on_entity_died, on_entity_died) -Event.add(defines.events.on_player_repaired_entity, on_player_repaired_entity) \ No newline at end of file +Event.add(defines.events.on_player_repaired_entity, on_player_repaired_entity) + +return Public \ No newline at end of file