Skip to content

Commit

Permalink
Fixed #10385
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Jan 12, 2025
1 parent ca7f34e commit 75cd832
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/mindustry/world/DirectionalItemBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public boolean accepts(int buffer){

public void accept(int buffer, Item item){
if(!accepts(buffer)) return;
buffers[buffer][indexes[buffer]++] = BufferItem.get((byte)item.id, Time.time);
buffers[buffer][indexes[buffer]++] = BufferItem.get(item.id, Time.time);
}

public Item poll(int buffer, float speed){
Expand Down Expand Up @@ -68,7 +68,7 @@ public void read(Reads read){

@Struct
class BufferItemStruct{
byte item;
short item;
float time;
}
}

0 comments on commit 75cd832

Please sign in to comment.