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

View File

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

View File

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