LanternPowered / Terre

A proxy server for Terraria which adds support for cross-platform, multi-world and more.
MIT License
18 stars 3 forks source link

Portal plugin says portal portal name is already used when creating a portal #17

Closed TextualMold9830 closed 1 year ago

TextualMold9830 commented 1 year ago

java.lang.IllegalStateException: The name 'myportal' is already used.
    at org.lanternpowered.terre.portals.Portals.createPortal-FkN-wW0(Portals.kt:113) ~[?:?]
    at org.lanternpowered.terre.portals.Portals.access$createPortal-FkN-wW0(Portals.kt:48) ~[?:?]
    at org.lanternpowered.terre.portals.Portals$portalCommandExecutor$1.execute(Portals.kt:210) ~[?:?]
    at org.lanternpowered.terre.impl.command.CommandManagerImpl$register$1.execute(CommandManagerImpl.kt:32) ~[terre-proxy-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
    at org.lanternpowered.terre.impl.command.CommandManagerImpl.execute(CommandManagerImpl.kt:44) ~[terre-proxy-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
    at org.lanternpowered.terre.impl.network.client.ClientPlayConnectionHandler.handle(ClientPlayConnectionHandler.kt:113) ~[terre-proxy-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
    at org.lanternpowered.terre.impl.network.ConnectionHandlerBindings$12.invoke(ConnectionHandlerBindings.kt:68) ~[terre-proxy-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
    at org.lanternpowered.terre.impl.network.ConnectionHandlerBindings$12.invoke(ConnectionHandlerBindings.kt:68) ~[terre-proxy-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
    at org.lanternpowered.terre.impl.network.ConnectionHandlerBindings$bindSuspend$1.handle(ConnectionHandlerBindings.kt:111) ~[terre-proxy-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
    at org.lanternpowered.terre.impl.network.Connection$channelRead$function$1.invokeSuspend(Connection.kt:169) ~[terre-proxy-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) ~[kotlin-stdlib-1.8.20.jar:1.8.20-release-327(1.8.20)]
    at kotlin.coroutines.ContinuationKt.startCoroutine(Continuation.kt:115) ~[kotlin-stdlib-1.8.20.jar:1.8.20-release-327(1.8.20)]
    at org.lanternpowered.terre.impl.network.Connection.channelRead(Connection.kt:172) ~[terre-proxy-1.0-SNAPSHOT.jar:1.0-SNAPSHOT]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[netty-codec-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:346) ~[netty-codec-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:318) ~[netty-codec-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) ~[netty-handler-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:442) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[netty-transport-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.90.Final.jar:4.1.90.Final]
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.90.Final.jar:4.1.90.Final]
    at java.lang.Thread.run(Thread.java:1583) [?:?]```
Cybermaxke commented 1 year ago

The issue should be fixed in https://github.com/LanternPowered/Terre/commit/767bb934ca9a480aff42f7a09706a6189d60307c . Can you retest with the latest build?

TextualMold9830 commented 1 year ago

Works perfecly!