mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-07 17:34:13 +07:00
Bugfixes
This commit is contained in:
parent
85e4270536
commit
a7b80f025c
@ -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)){
|
||||
|
@ -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());
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user