1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00

Change digit to string to prevent error

This commit is contained in:
Matthew Heguy 2019-02-13 00:18:17 -05:00
parent a48f6444cc
commit cbe82d4edb

View File

@ -242,7 +242,7 @@ end
local function on_rocket_launched(event)
local force = event.rocket.force
local exp = add_experience_percentage(force, config.XP['rocket_launch'])
local text = format('Rocket launched! +%d XP', exp)
local text = format('Rocket launched! +%s XP', exp)
for _, p in pairs(game.connected_players) do
local player_index = p.index
print_player_floating_text_position(player_index, text, gain_xp_color, -1, -0.5)