DataBlockTileEntityPerClass is now sending the block & mod name.

Adv side detection is now working a bit better (handle worker threads for Rcon)
PacketManager will try to dispatch the packets to the FakePlayers when doing an untargeted send.
PacketManager handling of fake player is done on the sendToPlayer level.
Rcon connections are reproducing the "player logged in" behavior.
This commit is contained in:
ProfMobius committed 2014-10-03 18:27:45 +02:00
1 parent 572d0158cb
commit 0c7e17c061
6 files changed
+36 -11

No files matched your search

@@ -4,6 +4,7 @@ import java.util.ArrayList;
import java.util.concurrent.ConcurrentLinkedQueue;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraftforge.common.util.FakePlayer;
import com.google.common.collect.BiMap;
import com.google.common.collect.HashBiMap;
@@ -19,6 +20,7 @@ import mcp.mobius.opis.network.PacketManager;
import mcp.mobius.opis.network.enums.Message;
import mcp.mobius.opis.network.packets.server.NetDataList;
import mcp.mobius.opis.network.packets.server.NetDataValue;
import mcp.mobius.opis.network.rconserver.RConServer;
public enum StringCache implements IMessageHandler {
INSTANCE;
@@ -75,7 +77,8 @@ public enum StringCache implements IMessageHandler {
public void syncNewCache(){
while (!unsynced.isEmpty()){
PacketManager.sendToAll(new NetDataValue(Message.STATUS_STRINGUPD, this.unsynced.poll()));
DataStringUpdate update = this.unsynced.poll();
PacketManager.sendToAll(new NetDataValue(Message.STATUS_STRINGUPD, update));
}
}