File tree 3 files changed +2
-7
lines changed
src/main/java/com/codehusky/huskyui
3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 6
6
7
7
<groupId >com.codehusky</groupId >
8
8
<artifactId >HuskyUI</artifactId >
9
- <version >0.4.0 </version >
9
+ <version >0.4.1 </version >
10
10
11
11
<repositories >
12
12
<repository >
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public class HuskyUI {
53
53
/**
54
54
* The Version of HuskyUI for Sponge.
55
55
*/
56
- public static final String PLUGIN_VERSION = "0.4.0 " ;
56
+ public static final String PLUGIN_VERSION = "0.4.1 " ;
57
57
58
58
/**
59
59
* The HuskyUI {@link Logger} used throughout the plugin.
Original file line number Diff line number Diff line change 9
9
10
10
public class InventoryUtil {
11
11
public static void close (Player player ) {
12
- check (player .getOpenInventory ()).ifPresent (Inventory ::clear );
13
12
player .closeInventory ();
14
13
}
15
14
16
15
public static void open (Player player , Inventory inventory ) {
17
- check (player .getOpenInventory ()).ifPresent (Inventory ::clear );
18
16
player .openInventory (inventory );
19
17
}
20
18
21
- public static Optional <Container > check (Optional <Container > inventory ) {
22
- return inventory .filter (i -> i .getProperties (StringProperty .class ).stream ().anyMatch (p -> p .equals (StringProperty .of ("huskui-page" ))));
23
- }
24
19
}
You can’t perform that action at this time.
0 commit comments