mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 15:46:01 +00:00
Rewrite networking code for the 100th time to fix memory leak
This commit is contained in:
1 parent
be3883195c
commit
e5f76907ce
103 files changed
+2683
-2759
No files matched your search
@@ -5,7 +5,7 @@ import mekanism.api.MekanismAPI.BoxBlacklistEvent;
|
||||
import mekanism.client.sound.SoundHandler;
|
||||
import mekanism.client.voice.VoiceClient;
|
||||
import mekanism.common.Mekanism;
|
||||
import mekanism.common.network.PacketKey;
|
||||
import mekanism.common.network.PacketKey.KeyMessage;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
@@ -36,7 +36,7 @@ public class MekanismClient extends Mekanism
|
||||
|
||||
if(down != keyMap.has(Minecraft.getMinecraft().thePlayer, type))
|
||||
{
|
||||
Mekanism.packetPipeline.sendToServer(new PacketKey(type, down));
|
||||
Mekanism.packetHandler.sendToServer(new KeyMessage(type, down));
|
||||
keyMap.update(Minecraft.getMinecraft().thePlayer, type, down);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user