mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-13 04:42:07 -08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
a05ee8bbb8
2 changed files with 8 additions and 2 deletions
|
|
@ -132,7 +132,13 @@ public class EventType{
|
|||
|
||||
/** Called when a player deposits items to a block.*/
|
||||
public static class DepositEvent{
|
||||
|
||||
public final Tile tile;
|
||||
public final Player player;
|
||||
|
||||
public DepositEvent(Tile tile, Player player){
|
||||
this.tile = tile;
|
||||
this.player = player;
|
||||
}
|
||||
}
|
||||
|
||||
public static class GameOverEvent{
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
int[] remaining = {accepted, accepted};
|
||||
Block block = tile.block();
|
||||
|
||||
Events.fire(new DepositEvent());
|
||||
Core.app.post(() -> Events.fire(new DepositEvent(tile, player)));
|
||||
|
||||
for(int i = 0; i < sent; i++){
|
||||
boolean end = i == sent - 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue