diff --git a/maps/mountain_fortress_v3/main.lua b/maps/mountain_fortress_v3/main.lua index 1950b32a3..663760e8a 100644 --- a/maps/mountain_fortress_v3/main.lua +++ b/maps/mountain_fortress_v3/main.lua @@ -526,7 +526,7 @@ local on_research_finished = function(event) research.force.character_inventory_slots_bonus = game.forces.player.mining_drill_productivity_bonus * 50 -- +5 Slots / level local mining_speed_bonus = game.forces.player.mining_drill_productivity_bonus * 5 -- +50% speed / level - if research.force.technologies['steel-axe'].researched then + if research.name == 'steel-axe' then mining_speed_bonus = mining_speed_bonus + 0.5 research.force.manual_mining_speed_modifier = mining_speed_bonus local msg = diff --git a/utils/datastore/server_ups.lua b/utils/datastore/server_ups.lua index 1c7ed4041..b60df0fc9 100644 --- a/utils/datastore/server_ups.lua +++ b/utils/datastore/server_ups.lua @@ -16,6 +16,9 @@ local function set_location(event) local player = game.get_player(event.player_index) local gui = player.gui local label = gui.screen[ups_label] + if not label or not label.valid then + return + end local res = player.display_resolution local uis = player.display_scale label.location = {x = res.width - 423 * uis, y = 30 * uis}