From 18609f57acb4b43c03d6c27278fc6f5a2b3f91a4 Mon Sep 17 00:00:00 2001 From: LexManos Date: Mon, 18 Dec 2017 16:03:41 -0800 Subject: [PATCH] Fix missing call to release() in the event channel handler (#4513) (reverted from commit cd99957627625f7baeff8761c6382b05db9699d3) --- jsons/1.12.2.json | 10 ++--- .../network/NetworkEventFiringHandler.java | 4 +- .../fml/test/ForgeNetworkTestMod.java | 39 ++++--------------- 3 files changed, 15 insertions(+), 38 deletions(-) diff --git a/jsons/1.12.2.json b/jsons/1.12.2.json index 7f8876c32..77f9b7fd8 100644 --- a/jsons/1.12.2.json +++ b/jsons/1.12.2.json @@ -1,10 +1,10 @@ { "assetIndex": { "id": "1.12", - "sha1": "c2ba0c4da30cce204c70db2ebc32a942cea8c7dd", - "size": 169015, - "url": "https://launchermeta.mojang.com/mc/assets/1.12/c2ba0c4da30cce204c70db2ebc32a942cea8c7dd/1.12.json", - "totalSize": 127300317 + "sha1": "3b666765bafa02e84e24b371d9efd7a4d1b6e188", + "size": 169254, + "url": "https://launchermeta.mojang.com/mc/assets/1.12/3b666765bafa02e84e24b371d9efd7a4d1b6e188/1.12.json", + "totalSize": 127589960 }, "assets": "1.12", "downloads": { @@ -719,6 +719,6 @@ "minecraftArguments": "--username ${auth_player_name} --version ${version_name} --gameDir ${game_directory} --assetsDir ${assets_root} --assetIndex ${assets_index_name} --uuid ${auth_uuid} --accessToken ${auth_access_token} --userType ${user_type} --versionType ${version_type}", "minimumLauncherVersion": 18, "releaseTime": "2017-09-18T08:39:46+00:00", - "time": "2017-09-18T08:41:11+00:00", + "time": "2017-12-07T09:55:13+00:00", "type": "release" } diff --git a/src/main/java/net/minecraftforge/fml/common/network/NetworkEventFiringHandler.java b/src/main/java/net/minecraftforge/fml/common/network/NetworkEventFiringHandler.java index 92d3c2c53..d1a375cb0 100644 --- a/src/main/java/net/minecraftforge/fml/common/network/NetworkEventFiringHandler.java +++ b/src/main/java/net/minecraftforge/fml/common/network/NetworkEventFiringHandler.java @@ -22,6 +22,8 @@ package net.minecraftforge.fml.common.network; import net.minecraftforge.fml.common.FMLLog; import net.minecraftforge.fml.common.network.internal.FMLProxyPacket; +import org.apache.logging.log4j.Level; + import io.netty.channel.ChannelHandler.Sharable; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.SimpleChannelInboundHandler; @@ -47,7 +49,6 @@ public class NetworkEventFiringHandler extends SimpleChannelInboundHandler