Packets should be thread safe now

This commit is contained in:
aidancbrady committed 2016-06-17 15:56:22 -04:00
1 parent 542e806644
commit e4aed3f7c1
25 files changed
+788 -624

No files matched your search

@@ -4,8 +4,8 @@ import static mekanism.common.block.states.BlockStatePlastic.colorProperty;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -1110,6 +1110,12 @@ public class ClientProxy extends CommonProxy
return Minecraft.getMinecraft().thePlayer;
}
}
@Override
public void handlePacket(Runnable runnable, World world)
{
Minecraft.getMinecraft().addScheduledTask(runnable);
}
@Override
public void renderLaser(World world, Pos3D from, Pos3D to, EnumFacing direction, double energy)