Hopefully fix JZ’s compile bug

This commit is contained in:
Aidan Brady 2013-12-24 16:41:01 -05:00
parent 7a71bc7848
commit 3cea13a272
2 changed files with 8 additions and 7 deletions

View file

@ -264,7 +264,14 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
if(newNetworks.size() > 0)
{
onNetworksCreated((List<N>)newNetworks);
List<N> casted = new ArrayList<N>();
for(ITransmitterNetwork<A, N> net : newNetworks)
{
casted.add((N)net);
}
onNetworksCreated(casted);
for(ITransmitterNetwork<A, N> network : newNetworks)
{

View file

@ -37,11 +37,5 @@ public interface ITransmitterNetwork<A, N extends DynamicNetwork<A, N>>
public boolean canMerge(List<ITransmitterNetwork<?, ?>> networks);
/**
* Gets a network's meta value right before it is split. This will then be passed onto "onNewFromSplit()" in
* every single new network that is created from the original split.
* @param size - the amount of new networks that are being created
* @return meta obj
*/
public void onNetworksCreated(List<N> networks);
}