parent
e9d2cfd11e
commit
39d6f09057
|
@ -1,6 +1,7 @@
|
||||||
package civilengineering.bridge
|
package civilengineering.bridge
|
||||||
|
|
||||||
import civilengineering.CivilEngineering
|
import civilengineering.CivilEngineering
|
||||||
|
import civilengineering.cfg
|
||||||
import net.minecraft.util.text.TextComponentString
|
import net.minecraft.util.text.TextComponentString
|
||||||
import net.minecraftforge.fml.common.FMLCommonHandler
|
import net.minecraftforge.fml.common.FMLCommonHandler
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
|
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
|
||||||
|
@ -13,7 +14,7 @@ class ServerChatHelper {
|
||||||
CivilEngineering.logger.debug("incoming: " + MessageHandler.rcvQueue.toString())
|
CivilEngineering.logger.debug("incoming: " + MessageHandler.rcvQueue.toString())
|
||||||
val nextMessage = MessageHandler.rcvQueue.poll()
|
val nextMessage = MessageHandler.rcvQueue.poll()
|
||||||
|
|
||||||
if (nextMessage != null) {
|
if (nextMessage != null && nextMessage.gateway == cfg!!.connect.gateway) {
|
||||||
val user = nextMessage.username
|
val user = nextMessage.username
|
||||||
val text = nextMessage.text.trim()
|
val text = nextMessage.text.trim()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue