1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-11-11 03:31:19 +03:00

Fixed tunnel conveyors outputting only stone

This commit is contained in:
Anuken 2018-02-06 18:52:36 -05:00
parent 59285f76c4
commit 1a6f773ddb

View File

@ -35,7 +35,7 @@ public class TunnelConveyor extends Block{
Tile to = tunnel.getNearby(tunnel.getRotation());
if(to == null) return;
entity.buffer[entity.index ++] = item.id;
entity.buffer[entity.index ++] = Bits.packLong(NumberUtils.floatToIntBits(Timers.time()), item.id);
}
@Override
@ -48,9 +48,7 @@ public class TunnelConveyor extends Block{
if(Timers.time() >= time + speed){
int val = Bits.getRightInt(l);
Item item = Item.getByID(Bits.getLeftShort(val));
Item item = Item.getByID(Bits.getRightInt(l));
Tile tunnel = getDestTunnel(tile, item);
if(tunnel == null) return;