Skip to content

Commit f79185b

Browse files
committed
feat: 1.21.5
1 parent 3d81769 commit f79185b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
metadata.format.version = "1.1"
22

33
[versions]
4-
minestom = "96543a894f"
4+
minestom = "1_21_5-0473b41b2a"
55
zstd = "1.5.5-3"
66
fastutil = "8.5.12"
77

src/main/java/net/hollowcube/polar/PolarLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ private void updateChunkData(@NotNull Short2ObjectMap<String> blockCache, @NotNu
401401
var block = chunk.getBlock(x, y, z, Block.Getter.Condition.CACHED);
402402
if (block == null) continue;
403403

404-
var handlerId = block.handler() == null ? null : block.handler().getNamespaceId().asString();
404+
var handlerId = block.handler() == null ? null : block.handler().getKey().asString();
405405
if (handlerId != null || block.hasNbt()) {
406406
blockEntities.add(new PolarChunk.BlockEntity(
407407
x, y, z, handlerId, block.nbt()

src/main/java/net/hollowcube/polar/PolarReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
import com.github.luben.zstd.Zstd;
44
import net.hollowcube.polar.PolarSection.LightContent;
5+
import net.kyori.adventure.key.Key;
56
import net.kyori.adventure.nbt.BinaryTag;
67
import net.kyori.adventure.nbt.CompoundBinaryTag;
78
import net.minestom.server.coordinate.CoordConversion;
89
import net.minestom.server.network.NetworkBuffer;
9-
import net.minestom.server.utils.NamespaceID;
1010
import net.minestom.server.utils.nbt.BinaryTagReader;
1111
import org.jetbrains.annotations.Contract;
1212
import org.jetbrains.annotations.NotNull;
@@ -161,7 +161,7 @@ static void upgradeGrassInPalette(String[] blockPalette, int version) {
161161
for (int i = 0; i < blockPalette.length; i++) {
162162
if (blockPalette[i].contains("grass")) {
163163
String strippedID = blockPalette[i].split("\\[")[0];
164-
if (NamespaceID.from(strippedID).path().equals("grass")) {
164+
if (Key.key(strippedID).value().equals("grass")) {
165165
blockPalette[i] = "short_grass";
166166
}
167167
}

0 commit comments

Comments
 (0)