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:
commit
62f0c6cc0a
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user