Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.21.4 support (#226) #227

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Changelog
- 1.21.3 Support by @Jsinco (removes support for <= 1.21.2)
- 1.21.4 Support by @funniray (removes support for <= 1.21.3)
2 changes: 1 addition & 1 deletion Insights-NMS/Current/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dependencies {
paperweight.paperDevBundle("1.21.3-R0.1-SNAPSHOT")
paperweight.paperDevBundle("1.21.4-R0.1-SNAPSHOT")
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ public CommandSender map(CommandSourceStack source) {
@Override
public CommandSourceStack reverse(CommandSender sender) {
return new CommandSourceStack() {
private Location location = null;
private Entity entity = null;

@Override
public @NotNull Location getLocation() {
if (location != null) return location;
if (sender instanceof Entity entity) {
return entity.getLocation();
}
Expand All @@ -35,8 +39,22 @@ public CommandSourceStack reverse(CommandSender sender) {

@Override
public @Nullable Entity getExecutor() {
if (entity != null) return entity;
return sender instanceof Entity entity ? entity : null;
}

// Needs testing
@Override
public CommandSourceStack withLocation(Location location) {
this.location = location;
return this;
}

@Override
public CommandSourceStack withExecutor(Entity entity) {
this.entity = entity;
return this;
}
};
}
}
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ subprojects {
maven("https://repo.codemc.io/repository/maven-public")
maven("https://oss.sonatype.org/content/repositories/snapshots/")
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://libraries.minecraft.net")
}

Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
# libraries
semver = "0.10.2"
minecraft = "1.21.3-R0.1-SNAPSHOT"
minecraft = "1.21.4-R0.1-SNAPSHOT"
paperLib = "1.0.8"
bStats = "3.0.0"
adventure = "4.17.0"
Expand All @@ -17,7 +17,7 @@ cloud = "2.0.0-rc.2"

# plugins
shadow = "9.0.0-beta2"
userdev = "1.7.5"
userdev = "2.0.0-beta.13"
pluginYml = "0.6.0"

[libraries]
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists