Skip to content

Commit

Permalink
Fix unloader arrows not resetting when picked up
Browse files Browse the repository at this point in the history
Hopefully for the last time...
  • Loading branch information
sbxte committed Jan 16, 2024
1 parent 4ce104a commit acdd999
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/assets/features
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
* Player List Assist - None (Regular), Shift (Free Move), Ctrl (Follow Cursor), Alt (BuildPath)
* Click Assist - Shift (Regular), Shift + Alt (Free Move), Ctrl (Follow Cursor), Ctrl + Alt (BuildPath)
* Shift {schematic_menu} - Schematic browser
* {force_place_modifier} {select} - Force places selection/schematics by marking overlapping buildings for deconstruction and placing overlapped plans into frozen queue.

# Commands
* If you're unfamiliar with mindustry command syntax, <name> indicates a required argument, and [name] an optional one
Expand Down Expand Up @@ -122,6 +123,7 @@
# Vanilla Modifications
* Shift click up/down in schematic tag list to send to top/bottom respectively
* Shift click delete in schematic tag list to delete tag without prompt
* Alt {pickupCargo} pick up buildings but not units

# Credits
* Game by anuke, client by foo, buthed010203, Zxtej, SBytes, and BalaM314
2 changes: 1 addition & 1 deletion core/src/mindustry/input/InputHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
import arc.scene.*;
import arc.scene.event.*;
import arc.scene.ui.layout.*;
import arc.struct.*;
import arc.struct.Queue;
import arc.struct.*;
import arc.util.*;
import kotlin.Pair;
import mindustry.*;
Expand Down
9 changes: 9 additions & 0 deletions core/src/mindustry/world/blocks/storage/Unloader.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,15 @@ public void buildConfiguration(Table table){
ItemSelection.buildTable(Unloader.this, table, content.items(), () -> sortItem, this::configure, selectionRows, selectionColumns);
}

@Override
public void pickedUp() {
super.pickedUp();

lastDumpFrom = null;
lastDumpTo = null;
lastItem = null;
}

@Override
public Item config(){
return sortItem;
Expand Down

0 comments on commit acdd999

Please sign in to comment.