From ef1efaffec9161c93c29316be1c5cae242f0582a Mon Sep 17 00:00:00 2001 From: Ben Staddon Date: Thu, 1 Dec 2016 00:26:38 +0000 Subject: [PATCH] Fix Redstone Torch memory leak (#3474) --- .../net/minecraft/block/BlockRedstoneTorch.java.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 patches/minecraft/net/minecraft/block/BlockRedstoneTorch.java.patch diff --git a/patches/minecraft/net/minecraft/block/BlockRedstoneTorch.java.patch b/patches/minecraft/net/minecraft/block/BlockRedstoneTorch.java.patch new file mode 100644 index 000000000..e7d19abe3 --- /dev/null +++ b/patches/minecraft/net/minecraft/block/BlockRedstoneTorch.java.patch @@ -0,0 +1,11 @@ +--- ../src-base/minecraft/net/minecraft/block/BlockRedstoneTorch.java ++++ ../src-work/minecraft/net/minecraft/block/BlockRedstoneTorch.java +@@ -23,7 +23,7 @@ + + public class BlockRedstoneTorch extends BlockTorch + { +- private static final Map> field_150112_b = Maps.>newHashMap(); ++ private static final Map> field_150112_b = new java.util.WeakHashMap>(); // FORGE - fix vanilla MC-101233 + private final boolean field_150113_a; + + private boolean func_176598_a(World p_176598_1_, BlockPos p_176598_2_, boolean p_176598_3_)