mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-22 20:48:33 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
859c2987f0
@ -31,9 +31,11 @@ public class Menus{
|
||||
|
||||
@Remote(targets = Loc.both, called = Loc.both)
|
||||
public static void menuChoose(@Nullable Player player, int menuId, int option){
|
||||
if(player != null && menuId >= 0 && menuId < menuListeners.size){
|
||||
if(player != null){
|
||||
Events.fire(new MenuOptionChooseEvent(player, menuId, option));
|
||||
menuListeners.get(menuId).get(player, option);
|
||||
if(menuId >= 0 && menuId < menuListeners.size){
|
||||
menuListeners.get(menuId).get(player, option);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user