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