Skip to content

Commit

Permalink
revert 1.19.3 (backport to 1.19)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodedSakura committed Apr 6, 2023
1 parent e903725 commit dfe56f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ plugins {
id "com.modrinth.minotaur" version "2.+"
}

version = "${project.mod_version}+${project.supported_versions.split(";")[0]}"
var mc_version = project.supported_versions.split(";")[0]
version = "${project.mod_version}+${mc_version}"
group = project.maven_group

repositories {
Expand All @@ -25,7 +26,7 @@ dependencies {
mappings "net.fabricmc:yarn:${project.minecraft_version}+${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

modImplementation "dev.codedsakura.blossom:blossom-lib:${project.blossomlib_version}+${project.minecraft_version}"
modImplementation "dev.codedsakura.blossom:blossom-lib:${project.blossomlib_version}+${mc_version}"
}

processResources {
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ mod_version=2.0.6
maven_group=dev.codedsakura.blossom
mod_slug=BlossomHomes
archives_base_name=blossom-homes
supported_versions=1.19.3;1.19.4
supported_versions=1.19;1.19.1;1.19.2

# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.19.4
minecraft_version=1.19.2
yarn_mappings=build.1
loader_version=0.14.17

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
import com.mojang.brigadier.suggestion.SuggestionsBuilder;
import dev.codedsakura.blossom.lib.data.ListDataController;
import dev.codedsakura.blossom.lib.teleport.TeleportUtils;
import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
import net.minecraft.util.registry.RegistryKey;

import java.util.ArrayList;
import java.util.List;
Expand Down Expand Up @@ -58,7 +58,7 @@ public String toString() {

TeleportUtils.TeleportDestination toDestination(MinecraftServer server) {
return new TeleportUtils.TeleportDestination(
server.getWorld(RegistryKey.of(RegistryKeys.WORLD, new Identifier(this.world))),
server.getWorld(RegistryKey.of(Registry.WORLD_KEY, new Identifier(this.world))),
x, y, z, yaw, pitch
);
}
Expand Down

0 comments on commit dfe56f6

Please sign in to comment.