Skip to content

Commit

Permalink
v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SamJakob committed Sep 30, 2024
1 parent 4ac7764 commit c74b525
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 18 deletions.
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions .idea/modules.xml

This file was deleted.

6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group 'com.samjakob'
version '1.3.1'
version '1.4.0'
uri "https://github.com/SamJakob/SpiGUI"

java {
Expand Down Expand Up @@ -94,8 +94,8 @@ publishing {
: 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'

credentials {
username = project.properties['ossrhUsername']
password = project.properties['ossrhPassword']
username = ossrhUsername
password = ossrhPassword
}
}
}
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
12 changes: 8 additions & 4 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ done
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum

Expand Down Expand Up @@ -133,10 +130,13 @@ location of your Java installation."
fi
else
JAVACMD=java
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
if ! command -v java >/dev/null 2>&1
then
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
fi

# Increase the maximum file descriptors if we can.
Expand Down Expand Up @@ -197,6 +197,10 @@ if "$cygwin" || "$msys" ; then
done
fi


# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/samjakob/spigui/item/ItemBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
*/
public class ItemBuilder {

/**
* The item stack being built.
*/
private final ItemStack stack;

/* CONSTRUCT */
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/com/samjakob/spigui/menu/SGMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,26 @@ public class SGMenu implements InventoryHolder {

/// DEFAULT PERMITTED / BLOCKED ACTIONS ///

/**
* The default set of actions that are permitted if they occur in an SGMenu.
*/
private static final ClickType[] DEFAULT_PERMITTED_MENU_CLICK_TYPES = new ClickType[]{
ClickType.LEFT,
ClickType.RIGHT
};

/**
* The default set of actions that are blocked if they occur in an SGMenu.
*/
private static final InventoryAction[] DEFAULT_BLOCKED_MENU_ACTIONS = new InventoryAction[] {
InventoryAction.MOVE_TO_OTHER_INVENTORY,
InventoryAction.COLLECT_TO_CURSOR
};

/**
* The default set of actions that are blocked if they occur in the adjacent
* inventory to an SGMenu.
*/
private static final InventoryAction[] DEFAULT_BLOCKED_ADJACENT_ACTIONS = new InventoryAction[] {
InventoryAction.MOVE_TO_OTHER_INVENTORY,
InventoryAction.COLLECT_TO_CURSOR
Expand Down

0 comments on commit c74b525

Please sign in to comment.