Skip to content

Commit c74b525

Browse files
committed
v1.4.0
1 parent 4ac7764 commit c74b525

File tree

8 files changed

+26
-18
lines changed

8 files changed

+26
-18
lines changed

.idea/misc.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
group 'com.samjakob'
8-
version '1.3.1'
8+
version '1.4.0'
99
uri "https://github.com/SamJakob/SpiGUI"
1010

1111
java {
@@ -94,8 +94,8 @@ publishing {
9494
: 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
9595

9696
credentials {
97-
username = project.properties['ossrhUsername']
98-
password = project.properties['ossrhPassword']
97+
username = ossrhUsername
98+
password = ossrhPassword
9999
}
100100
}
101101
}

gradle/wrapper/gradle-wrapper.jar

1.73 KB
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

gradlew

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ done
8585
APP_BASE_NAME=${0##*/}
8686
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
8787

88-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
90-
9188
# Use the maximum available, or set MAX_FD != -1 to use that value.
9289
MAX_FD=maximum
9390

@@ -133,10 +130,13 @@ location of your Java installation."
133130
fi
134131
else
135132
JAVACMD=java
136-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
133+
if ! command -v java >/dev/null 2>&1
134+
then
135+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137136
138137
Please set the JAVA_HOME variable in your environment to match the
139138
location of your Java installation."
139+
fi
140140
fi
141141

142142
# Increase the maximum file descriptors if we can.
@@ -197,6 +197,10 @@ if "$cygwin" || "$msys" ; then
197197
done
198198
fi
199199

200+
201+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
202+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
203+
200204
# Collect all arguments for the java command;
201205
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
202206
# shell script including quotes and variable substitutions, so put them in

src/main/java/com/samjakob/spigui/item/ItemBuilder.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
*/
3131
public class ItemBuilder {
3232

33+
/**
34+
* The item stack being built.
35+
*/
3336
private final ItemStack stack;
3437

3538
/* CONSTRUCT */

src/main/java/com/samjakob/spigui/menu/SGMenu.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,26 @@ public class SGMenu implements InventoryHolder {
9393

9494
/// DEFAULT PERMITTED / BLOCKED ACTIONS ///
9595

96+
/**
97+
* The default set of actions that are permitted if they occur in an SGMenu.
98+
*/
9699
private static final ClickType[] DEFAULT_PERMITTED_MENU_CLICK_TYPES = new ClickType[]{
97100
ClickType.LEFT,
98101
ClickType.RIGHT
99102
};
100103

104+
/**
105+
* The default set of actions that are blocked if they occur in an SGMenu.
106+
*/
101107
private static final InventoryAction[] DEFAULT_BLOCKED_MENU_ACTIONS = new InventoryAction[] {
102108
InventoryAction.MOVE_TO_OTHER_INVENTORY,
103109
InventoryAction.COLLECT_TO_CURSOR
104110
};
105111

112+
/**
113+
* The default set of actions that are blocked if they occur in the adjacent
114+
* inventory to an SGMenu.
115+
*/
106116
private static final InventoryAction[] DEFAULT_BLOCKED_ADJACENT_ACTIONS = new InventoryAction[] {
107117
InventoryAction.MOVE_TO_OTHER_INVENTORY,
108118
InventoryAction.COLLECT_TO_CURSOR

0 commit comments

Comments
 (0)