1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-10 00:43:27 +02:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
MewMew 2019-11-03 20:48:24 +01:00
commit 62f0c6cc0a

View File

@ -1,15 +1,13 @@
local event = require 'utils.event'
local rpg_t = require 'modules.rpg'
local function on_console_chat(event)
local rpg = rpg_t.get_table()
if not event.message then return end
if not event.player_index then return end
local player = game.players[event.player_index]
if not player.character then return end
local y_offset = -4
if rpg then y_offset = -4.5 end
if package.loaded['modules.rpg'] then y_offset = -4.5 end
if global.player_floaty_chat[player.index] then
rendering.destroy(global.player_floaty_chat[player.index])