1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-18 03:21:47 +02:00

Fixed wrong position

This commit is contained in:
Lynn 2018-12-01 21:44:01 +01:00
parent 83597c6f5a
commit 3077e1cf59

View File

@ -261,11 +261,12 @@ local function on_entity_died (event)
elseif entity_name == 'rock-huge' then
exp = floor((rock_huge_xp + level * 0.2) * 0.5)
end
floating_text_position = entity.position
end
end
if exp > 0 then
Game.print_floating_text(entity.surface, entity.position, format('+%d XP', exp), gain_xp_color)
Game.print_floating_text(entity.surface, floating_text_position, format('+%d XP', exp), gain_xp_color)
ForceControl.add_experience(force, exp)
end