mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-23 21:49:50 +00:00
Cleanup.
This commit is contained in:
1 parent
bc0a3cb98e
commit
eaec1a3baa
42 files changed
+159
-180
No files matched your search
@@ -45,7 +45,7 @@ public class EntitySpark extends Entity implements ISparkEntity {
|
||||
private static final String TAG_UPGRADE = "upgrade";
|
||||
|
||||
Set<ISparkEntity> transfers = Collections.newSetFromMap(new WeakHashMap());
|
||||
|
||||
|
||||
int removeTransferants = 2;
|
||||
boolean firstTick = false;
|
||||
|
||||
@@ -318,18 +318,18 @@ public class EntitySpark extends Entity implements ISparkEntity {
|
||||
@Override
|
||||
public Collection<ISparkEntity> getTransfers() {
|
||||
Collection<ISparkEntity> removals = new ArrayList();
|
||||
NBTTagList newTransfers = new NBTTagList();
|
||||
new NBTTagList();
|
||||
|
||||
for(ISparkEntity e : transfers) {
|
||||
ISparkEntity spark = (ISparkEntity) e;
|
||||
ISparkEntity spark = e;
|
||||
int upgr = getUpgrade();
|
||||
int supgr = spark.getUpgrade();
|
||||
ISparkAttachable atile = spark.getAttachedTile();
|
||||
|
||||
if(!(spark != this && !spark.areIncomingTransfersDone() && atile != null && !atile.isFull() && (upgr == 0 && supgr == 2 || upgr == 3 && (supgr == 0 || supgr == 1) || !(atile instanceof IManaPool))))
|
||||
removals.add((ISparkEntity) e);
|
||||
removals.add(e);
|
||||
}
|
||||
|
||||
|
||||
if(!removals.isEmpty())
|
||||
transfers.removeAll(removals);
|
||||
|
||||
|
||||
Reference in new issue
Block a user