Skip to content

Commit

Permalink
Update to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueZeeKing committed Jun 14, 2024
1 parent 3055e29 commit 91c8304
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
org.gradle.jvmargs=-Xmx2G

# Fabric Properties
minecraft_version=1.20.5
yarn_mappings=1.20.5+build.1
loader_version=0.15.10
minecraft_version=1.21
yarn_mappings=1.21+build.2
loader_version=0.15.11

# Mod Properties
mod_version = 2.6.1
mod_version = 2.6.2
maven_group = io.icker
archives_base_name = factions

# Dependencies
fabric_version=0.97.5+1.20.5
fabric_version=0.100.1+1.21
lucko_permissions_version=0.3.1
dynmap_api_version=3.7-SNAPSHOT
papi_version=2.3.0+1.20.3
papi_version=2.4.0-pre.2+1.21
styled_chat_version=OQeEfRIi
bluemap_api_version=2.7.1
squaremap_api_version=1.2.3
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class PlaceholdersWrapper {
UNFORMATTED_NULL.copy().formatted(Formatting.DARK_GRAY);

private static void register(String identifier, Function<User, Text> handler) {
Placeholders.register(new Identifier(FactionsMod.MODID, identifier), (ctx, argument) -> {
Placeholders.register(Identifier.of(FactionsMod.MODID, identifier), (ctx, argument) -> {
if (!ctx.hasPlayer())
return PlaceholderResult.invalid("No player found");

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/icker/factions/util/WorldUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ public static boolean isReady() {

public static boolean isValid(String level) {
return WorldUtils.server.getWorldRegistryKeys().stream()
.anyMatch(key -> Objects.equals(key.getValue(), new Identifier(level)));
.anyMatch(key -> Objects.equals(key.getValue(), Identifier.of(level)));
}

@Nullable
public static ServerWorld getWorld(String level) {
Optional<RegistryKey<World>> key = WorldUtils.server.getWorldRegistryKeys().stream()
.filter(testKey -> Objects.equals(testKey.getValue(), new Identifier(level)))
.filter(testKey -> Objects.equals(testKey.getValue(), Identifier.of(level)))
.findAny();

if (key.isEmpty()) {
Expand Down

0 comments on commit 91c8304

Please sign in to comment.