From fe6c3650160a4d15b410186df7d6f76d204dcfc3 Mon Sep 17 00:00:00 2001 From: THUNDR Date: Wed, 30 May 2018 10:30:27 -0700 Subject: [PATCH] partial fix for leak in #84 --- src/main/java/tonius/simplyjetpacks/handler/SyncHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/tonius/simplyjetpacks/handler/SyncHandler.java b/src/main/java/tonius/simplyjetpacks/handler/SyncHandler.java index 525f6c3..6a9cb88 100755 --- a/src/main/java/tonius/simplyjetpacks/handler/SyncHandler.java +++ b/src/main/java/tonius/simplyjetpacks/handler/SyncHandler.java @@ -91,6 +91,7 @@ public static void clearAll() { flyKeyState.clear(); forwardKeyState.clear(); + descendKeyState.clear(); backwardKeyState.clear(); leftKeyState.clear(); rightKeyState.clear(); @@ -100,6 +101,7 @@ private static void removeFromAll(EntityPlayer player) { flyKeyState.remove(player); forwardKeyState.remove(player); + descendKeyState.remove(player); backwardKeyState.remove(player); leftKeyState.remove(player); rightKeyState.remove(player);