Skip to content

Commit

Permalink
Upgraded to Minecraft 1.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Picono435 committed Sep 29, 2023
1 parent 57bc4ab commit 4ecd5a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
import com.gmail.picono435.randomtp.RandomTPMod;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.datafix.DataFixTypes;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.level.ForcedChunksSavedData;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.saveddata.SavedData;
import net.minecraft.world.level.storage.DimensionDataStorage;
import org.apache.logging.log4j.core.jmx.Server;

import java.util.HashMap;
import java.util.UUID;
Expand Down Expand Up @@ -50,8 +53,7 @@ public static ServerState getServerState(MinecraftServer server) {
.getLevel(Level.OVERWORLD).getDataStorage();

ServerState serverState = persistentStateManager.computeIfAbsent(
ServerState::createFromNbt,
ServerState::new,
new SavedData.Factory<>(ServerState::new, ServerState::createFromNbt, null),
RandomTPMod.MOD_ID);

serverState.setDirty();
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
org.gradle.jvmargs=-Xmx6G
org.gradle.daemon=false

minecraft_version=1.20
minecraft_version=1.20.2

archives_base_name=randomtp
mod_version=8.0.0+1.20
mod_version=8.0.1+1.20
maven_group=com.gmail.picono435

fabric_loader_version=0.14.21
fabric_api_version=0.83.0+1.20
fabric_loader_version=0.14.22
fabric_api_version=0.89.2+1.20.2

forge_version=46.0.1
forge_version=48.0.13

0 comments on commit 4ecd5a3

Please sign in to comment.