Fix NPE on missing mods - still need to actually handle missing mods properly on client

This commit is contained in:
Christian 2012-08-10 23:27:11 -04:00
parent fde0619e9b
commit 7440cc89e9

View file

@ -1,5 +1,7 @@
package cpw.mods.fml.common.network;
import java.util.List;
import net.minecraft.src.NetHandler;
import net.minecraft.src.NetworkManager;
@ -14,22 +16,24 @@ public class ModMissingPacket extends FMLPacket
@Override
public byte[] generatePacket(Object... data)
{
// TODO Auto-generated method stub
return null;
// TODO
List<String> missing = (List<String>) data[0];
List<String> badVersion = (List<String>) data[1];
return new byte[0];
}
@Override
public FMLPacket consumePacket(byte[] data)
{
// TODO Auto-generated method stub
return null;
// TODO
return this;
}
@Override
public void execute(NetworkManager network, FMLNetworkHandler handler, NetHandler netHandler, String userName)
{
// TODO Auto-generated method stub
// TODO
}
}