Bugfixes
This commit is contained in:
@@ -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)){
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user