mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-23 21:49:50 +00:00
More spark fixes.
This commit is contained in:
1 parent
d0fffb9996
commit
d3a3a3fe17
1 file changed
+2
-2
@@ -61,7 +61,7 @@ public class EntitySpark extends Entity implements ISparkEntity {
|
||||
super.onUpdate();
|
||||
|
||||
ISparkAttachable tile = getAttachedTile();
|
||||
if(tile == null) {
|
||||
if(tile == null && !worldObj.isRemote) {
|
||||
setDead();
|
||||
return;
|
||||
}
|
||||
@@ -153,7 +153,7 @@ public class EntitySpark extends Entity implements ISparkEntity {
|
||||
int manaForEach = manaTotal / transfers.size();
|
||||
if(manaForEach > transfers.size()) {
|
||||
for(ISparkEntity spark : transfers) {
|
||||
if(spark.getAttachedTile() == null)
|
||||
if(spark.getAttachedTile() == null || spark.getAttachedTile().isFull() || spark.areIncomingTransfersDone())
|
||||
continue;
|
||||
|
||||
ISparkAttachable attached = spark.getAttachedTile();
|
||||
|
||||
Reference in new issue
Block a user