mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-24 03:47:58 +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 event = require 'utils.event'
|
||||||
local rpg_t = require 'modules.rpg'
|
|
||||||
|
|
||||||
local function on_console_chat(event)
|
local function on_console_chat(event)
|
||||||
local rpg = rpg_t.get_table()
|
|
||||||
if not event.message then return end
|
if not event.message then return end
|
||||||
if not event.player_index then return end
|
if not event.player_index then return end
|
||||||
local player = game.players[event.player_index]
|
local player = game.players[event.player_index]
|
||||||
if not player.character then return end
|
if not player.character then return end
|
||||||
|
|
||||||
local y_offset = -4
|
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
|
if global.player_floaty_chat[player.index] then
|
||||||
rendering.destroy(global.player_floaty_chat[player.index])
|
rendering.destroy(global.player_floaty_chat[player.index])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user