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

@@ -77,6 +77,7 @@ import net.minecraft.server.MinecraftServer;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.common.network.ByteBufUtils;
import net.minecraftforge.fml.common.network.NetworkRegistry;
@@ -263,6 +264,11 @@ public class PacketHandler
{
return Mekanism.proxy.getPlayer(context);
}
public static void handlePacket(Runnable runnable, World world)
{
Mekanism.proxy.handlePacket(runnable, world);
}
/**
* Send this message to the specified player.