This commit is contained in:
Anuken
2020-04-04 15:08:08 -04:00
parent 85e4270536
commit a7b80f025c
3 changed files with 13 additions and 5 deletions

View File

@@ -181,11 +181,7 @@ public class ItemBridge extends Block{
return true; return true;
} }
@Override public void checkIncoming(){
public void updateTile(){
time += cycleSpeed * delta();
time2 += (cycleSpeed - 1f) * delta();
IntSetIterator it = incoming.iterator(); IntSetIterator it = incoming.iterator();
while(it.hasNext){ while(it.hasNext){
int i = it.next(); int i = it.next();
@@ -194,6 +190,14 @@ public class ItemBridge extends Block{
it.remove(); it.remove();
} }
} }
}
@Override
public void updateTile(){
time += cycleSpeed * delta();
time2 += (cycleSpeed - 1f) * delta();
checkIncoming();
Tile other = world.tile(link); Tile other = world.tile(link);
if(!linkValid(tile, other)){ if(!linkValid(tile, other)){

View File

@@ -24,6 +24,8 @@ public class LiquidBridge extends ItemBridge{
time += cycleSpeed * delta(); time += cycleSpeed * delta();
time2 += (cycleSpeed - 1f) * delta(); time2 += (cycleSpeed - 1f) * delta();
checkIncoming();
Tilec other = world.ent(link); Tilec other = world.ent(link);
if(other == null || !linkValid(tile, other.tile())){ if(other == null || !linkValid(tile, other.tile())){
dumpLiquid(liquids.current()); dumpLiquid(liquids.current());

View File

@@ -24,6 +24,8 @@ public class LiquidExtendingBridge extends ExtendingItemBridge{
time += cycleSpeed * delta(); time += cycleSpeed * delta();
time2 += (cycleSpeed - 1f) * delta(); time2 += (cycleSpeed - 1f) * delta();
checkIncoming();
Tilec other = world.ent(link); Tilec other = world.ent(link);
if(other == null || !linkValid(tile, other.tile())){ if(other == null || !linkValid(tile, other.tile())){
dumpLiquid(liquids.current()); dumpLiquid(liquids.current());