Skip to content

Commit 3dfa420

Browse files
authored
Merge pull request InsightsPlugin#223 from Jsinco/main
1.21.3 Support
2 parents 546e56e + b6d557f commit 3dfa420

File tree

5 files changed

+16
-27
lines changed

5 files changed

+16
-27
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Changelog
2-
- Fix /scanworld command parser, thx @ben9964 <3
2+
- 1.21.3 Support by @Jsinco (removes support for <= 1.21.2)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
dependencies {
2-
paperweight.paperDevBundle("1.21-R0.1-SNAPSHOT")
2+
paperweight.paperDevBundle("1.21.3-R0.1-SNAPSHOT")
33
}

Insights-NMS/Current/src/main/java/dev/frankheijden/insights/nms/impl/InsightsNMSImpl.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package dev.frankheijden.insights.nms.impl;
22

3-
import ca.spottedleaf.concurrentutil.executor.standard.PrioritisedExecutor;
4-
import ca.spottedleaf.moonrise.patches.chunk_system.io.RegionFileIOThread;
3+
import ca.spottedleaf.concurrentutil.util.Priority;
4+
import ca.spottedleaf.moonrise.patches.chunk_system.io.MoonriseRegionFileIO;
55
import com.mojang.serialization.Codec;
66
import com.mojang.serialization.DataResult;
77
import dev.frankheijden.insights.nms.core.ChunkEntity;
@@ -20,7 +20,7 @@
2020
import net.minecraft.world.level.chunk.LevelChunkSection;
2121
import net.minecraft.world.level.chunk.PalettedContainer;
2222
import net.minecraft.world.level.chunk.status.ChunkStatus;
23-
import net.minecraft.world.level.chunk.storage.ChunkSerializer;
23+
import net.minecraft.world.level.chunk.storage.SerializableChunkData;
2424
import org.bukkit.Chunk;
2525
import org.bukkit.Material;
2626
import org.bukkit.World;
@@ -67,7 +67,7 @@ public void getUnloadedChunkSections(World world, int chunkX, int chunkZ, Consum
6767

6868
PalettedContainer<BlockState> blockStateContainer;
6969
if (sectionTag.contains("block_states", Tag.TAG_COMPOUND)) {
70-
Codec<PalettedContainer<BlockState>> blockStateCodec = ChunkSerializer.BLOCK_STATE_CODEC;
70+
Codec<PalettedContainer<BlockState>> blockStateCodec = SerializableChunkData.BLOCK_STATE_CODEC;
7171
dataResult = blockStateCodec.parse(
7272
NbtOps.INSTANCE,
7373
sectionTag.getCompound("block_states")
@@ -125,12 +125,12 @@ public void getUnloadedChunkEntities(
125125
Consumer<ChunkEntity> entityConsumer
126126
) throws IOException {
127127
var serverLevel = ((CraftWorld) world).getHandle();
128-
CompoundTag tag = RegionFileIOThread.loadData(
128+
CompoundTag tag = MoonriseRegionFileIO.loadData(
129129
serverLevel,
130130
chunkX,
131131
chunkZ,
132-
RegionFileIOThread.RegionFileType.ENTITY_DATA,
133-
PrioritisedExecutor.Priority.BLOCKING
132+
MoonriseRegionFileIO.RegionFileType.ENTITY_DATA,
133+
Priority.BLOCKING
134134
);
135135
if (tag == null) return;
136136

build.gradle.kts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ plugins {
1212
val name = "Insights"
1313
group = "dev.frankheijden.insights"
1414
val dependencyDir = "$group.dependencies"
15-
version = "6.19.2"
15+
version = "6.19.3"
1616

1717
subprojects {
1818
apply(plugin = "java")
1919
apply(plugin = "checkstyle")
20-
apply(plugin = "com.github.johnrengelman.shadow")
20+
apply(plugin = "com.gradleup.shadow")
2121

2222
version = rootProject.version
2323

@@ -157,17 +157,6 @@ tasks.register<Copy>("copyJars") {
157157
}
158158

159159
buildscript {
160-
// tmp workaround for the shadow plugin + Java 21:
161-
// https://github.com/johnrengelman/shadow/pull/876#issuecomment-1942380071
162-
configurations {
163-
classpath {
164-
resolutionStrategy {
165-
force("org.ow2.asm:asm:9.6")
166-
force("org.ow2.asm:asm-commons:9.6")
167-
}
168-
}
169-
}
170-
171160
dependencies {
172161
classpath("io.github.z4kn4fein:semver:2.0.0")
173162
}

gradle/libs.versions.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
# libraries
33
semver = "0.10.2"
4-
minecraft = "1.21-R0.1-SNAPSHOT"
4+
minecraft = "1.21.3-R0.1-SNAPSHOT"
55
paperLib = "1.0.8"
66
bStats = "3.0.0"
77
adventure = "4.17.0"
@@ -10,14 +10,14 @@ assertj = "3.23.1"
1010
mockito = "4.11.0"
1111
jupiter = "5.9.1"
1212
brigadier = "1.0.18"
13-
placeholderapi = "2.11.4"
13+
placeholderapi = "2.11.6"
1414
commodore = "2.2"
1515
cloudPaper = "2.0.0-beta.9"
1616
cloud = "2.0.0-rc.2"
1717

1818
# plugins
19-
shadow = "8.1.1"
20-
userdev = "1.7.1"
19+
shadow = "9.0.0-beta2"
20+
userdev = "1.7.5"
2121
pluginYml = "0.6.0"
2222

2323
[libraries]
@@ -40,6 +40,6 @@ cloudPaper = { group = "org.incendo", name = "cloud-paper", version.ref = "cloud
4040
cloudAnnotations = { group = "org.incendo", name = "cloud-annotations", version.ref = "cloud" }
4141

4242
[plugins]
43-
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
43+
shadow = { id = "com.gradleup.shadow", version.ref = "shadow" }
4444
userdev = { id = "io.papermc.paperweight.userdev", version.ref = "userdev" }
4545
pluginYml = { id = "net.minecrell.plugin-yml.bukkit", version.ref = "pluginYml" }

0 commit comments

Comments
 (0)