Fix NPE on missing mods - still need to actually handle missing mods properly on client
This commit is contained in:
parent
fde0619e9b
commit
7440cc89e9
1 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue