mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-22 04:28:27 +07:00
Crash fix
This commit is contained in:
parent
d65beea179
commit
2ee87ad078
@ -38,7 +38,7 @@ public class Sorter extends Block implements SelectionTrait{
|
|||||||
@Remote(targets = Loc.both, called = Loc.both, forward = true)
|
@Remote(targets = Loc.both, called = Loc.both, forward = true)
|
||||||
public static void setSorterItem(Player player, Tile tile, Item item){
|
public static void setSorterItem(Player player, Tile tile, Item item){
|
||||||
SorterEntity entity = tile.entity();
|
SorterEntity entity = tile.entity();
|
||||||
entity.sortItem = item;
|
if(entity != null) entity.sortItem = item;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user