Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-25 15:50:14 +01:00
Remove BlockStateUpdater dependency
Not currently used
Dieser Commit ist enthalten in:
Ursprung
fa6808a620
Commit
444b5ecee8
@ -24,7 +24,6 @@ dependencies {
|
|||||||
implementation(libs.websocket)
|
implementation(libs.websocket)
|
||||||
|
|
||||||
api(libs.bundles.protocol)
|
api(libs.bundles.protocol)
|
||||||
implementation(libs.blockstateupdater)
|
|
||||||
|
|
||||||
api(libs.mcauthlib)
|
api(libs.mcauthlib)
|
||||||
api(libs.mcprotocollib) {
|
api(libs.mcprotocollib) {
|
||||||
|
@ -35,8 +35,6 @@ import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
|
|||||||
import it.unimi.dsi.fastutil.ints.IntOpenHashSet;
|
import it.unimi.dsi.fastutil.ints.IntOpenHashSet;
|
||||||
import it.unimi.dsi.fastutil.ints.IntSet;
|
import it.unimi.dsi.fastutil.ints.IntSet;
|
||||||
import it.unimi.dsi.fastutil.objects.*;
|
import it.unimi.dsi.fastutil.objects.*;
|
||||||
import org.cloudburstmc.blockstateupdater.BlockStateUpdater;
|
|
||||||
import org.cloudburstmc.blockstateupdater.util.tagupdater.CompoundTagUpdaterContext;
|
|
||||||
import org.cloudburstmc.nbt.*;
|
import org.cloudburstmc.nbt.*;
|
||||||
import org.cloudburstmc.protocol.bedrock.codec.v671.Bedrock_v671;
|
import org.cloudburstmc.protocol.bedrock.codec.v671.Bedrock_v671;
|
||||||
import org.cloudburstmc.protocol.bedrock.codec.v685.Bedrock_v685;
|
import org.cloudburstmc.protocol.bedrock.codec.v685.Bedrock_v685;
|
||||||
@ -85,19 +83,6 @@ public final class BlockRegistryPopulator {
|
|||||||
interface Remapper {
|
interface Remapper {
|
||||||
|
|
||||||
NbtMap remap(NbtMap tag);
|
NbtMap remap(NbtMap tag);
|
||||||
|
|
||||||
static Remapper of(BlockStateUpdater... updaters) {
|
|
||||||
CompoundTagUpdaterContext context = new CompoundTagUpdaterContext();
|
|
||||||
for (BlockStateUpdater updater : updaters) {
|
|
||||||
updater.registerUpdaters(context);
|
|
||||||
}
|
|
||||||
|
|
||||||
return tag -> {
|
|
||||||
NbtMapBuilder updated = context.update(tag, 0).toBuilder();
|
|
||||||
updated.remove("version"); // we already removed this, but the context adds it. remove it again.
|
|
||||||
return updated.build();
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void populate(Stage stage) {
|
public static void populate(Stage stage) {
|
||||||
|
@ -12,7 +12,6 @@ gson = "2.3.1" # Provided by Spigot 1.8.8
|
|||||||
websocket = "1.5.1"
|
websocket = "1.5.1"
|
||||||
protocol = "3.0.0.Beta2-20240520.153053-5"
|
protocol = "3.0.0.Beta2-20240520.153053-5"
|
||||||
raknet = "1.0.0.CR3-20240416.144209-1"
|
raknet = "1.0.0.CR3-20240416.144209-1"
|
||||||
blockstateupdater="1.20.80-20240411.142413-1"
|
|
||||||
mcauthlib = "e5b0bcc"
|
mcauthlib = "e5b0bcc"
|
||||||
mcprotocollib = "1.20.6-2-20240520.030045-8"
|
mcprotocollib = "1.20.6-2-20240520.030045-8"
|
||||||
adventure = "4.14.0"
|
adventure = "4.14.0"
|
||||||
@ -122,8 +121,6 @@ protocol-connection = { group = "org.cloudburstmc.protocol", name = "bedrock-con
|
|||||||
|
|
||||||
math = { group = "org.cloudburstmc.math", name = "immutable", version = "2.0" }
|
math = { group = "org.cloudburstmc.math", name = "immutable", version = "2.0" }
|
||||||
|
|
||||||
blockstateupdater = { group = "org.cloudburstmc", name = "block-state-updater", version.ref = "blockstateupdater"}
|
|
||||||
|
|
||||||
# plugins
|
# plugins
|
||||||
indra = { group = "net.kyori", name = "indra-common", version.ref = "indra" }
|
indra = { group = "net.kyori", name = "indra-common", version.ref = "indra" }
|
||||||
shadow = { group = "com.github.johnrengelman", name = "shadow", version.ref = "shadow" }
|
shadow = { group = "com.github.johnrengelman", name = "shadow", version.ref = "shadow" }
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren