Possible junction clog fix
This commit is contained in:
@@ -72,7 +72,7 @@ public class DebugFragment implements Fragment {
|
||||
});
|
||||
row();
|
||||
new button("time", () -> {
|
||||
Timers.resetTime(1080000/2f);
|
||||
Timers.resetTime(1080000 - 60*10);
|
||||
});
|
||||
row();
|
||||
new button("time2", () -> {
|
||||
|
||||
@@ -37,7 +37,7 @@ public class Junction extends Block{
|
||||
long l = buffer.items[0];
|
||||
float time = NumberUtils.intBitsToFloat(Bits.getLeftInt(l));
|
||||
|
||||
if(Timers.time() >= time + speed){
|
||||
if(Timers.time() >= time + speed || Timers.time() < time){
|
||||
|
||||
int val = Bits.getRightInt(l);
|
||||
|
||||
@@ -91,6 +91,7 @@ public class Junction extends Block{
|
||||
arr.add("nearby." + i);
|
||||
arr.add(tile.getNearby(i));
|
||||
}
|
||||
|
||||
Consumer<Buffer> write = b -> {
|
||||
for(int i = 0; i < b.index; i++){
|
||||
long l = b.items[i];
|
||||
|
||||
@@ -49,7 +49,7 @@ public class TunnelConveyor extends Block{
|
||||
long l = entity.buffer[0];
|
||||
float time = NumberUtils.intBitsToFloat(Bits.getLeftInt(l));
|
||||
|
||||
if(Timers.time() >= time + speed){
|
||||
if(Timers.time() >= time + speed || Timers.time() < time){
|
||||
|
||||
Item item = Item.getByID(Bits.getRightInt(l));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user