mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Make OpenContainer and SpawnEntity packets process on main game thread.
This commit is contained in:
1 file changed
+2
-2
@@ -55,8 +55,8 @@ public final class NetworkInitialization {
|
||||
.add(MismatchData.class, MismatchData.STREAM_CODEC, ctx(ForgePacketHandler::handleModMismatchData))
|
||||
.play() // TODO: Move to it's own channel, so that we can keep the core handshake channel clean/simple and thus not need to bump the version ever As it is the one responsible for validating versions
|
||||
.clientbound()
|
||||
.add(SpawnEntity.class, SpawnEntity.STREAM_CODEC, SpawnEntity::handle)
|
||||
.add(OpenContainer.class, OpenContainer.STREAM_CODEC, OpenContainer::handle)
|
||||
.addMain(SpawnEntity.class, SpawnEntity.STREAM_CODEC, SpawnEntity::handle)
|
||||
.addMain(OpenContainer.class, OpenContainer.STREAM_CODEC, OpenContainer::handle)
|
||||
.build();
|
||||
|
||||
public static final SimpleChannel PLAY = CONFIG;;
|
||||
|
||||
Reference in new issue
Block a user