mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 06:51:30 -08:00
Bugfixes
This commit is contained in:
parent
85e4270536
commit
a7b80f025c
3 changed files with 13 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue