This commit is contained in:
modmuss50 2023-10-18 17:14:09 +01:00
parent 13986bf795
commit 2148f3b922
5 changed files with 18 additions and 18 deletions

View file

@ -19,6 +19,7 @@ package net.fabricmc.fabric.mixin.gametest.server;
import java.io.File;
import java.nio.file.Path;
import com.mojang.serialization.Dynamic;
import joptsimple.OptionParser;
import joptsimple.OptionSet;
import joptsimple.OptionSpec;
@ -29,13 +30,12 @@ import org.spongepowered.asm.mixin.injection.Redirect;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
import net.minecraft.util.ApiServices;
import net.minecraft.resource.ResourcePackManager;
import net.minecraft.server.Main;
import net.minecraft.server.dedicated.EulaReader;
import net.minecraft.server.dedicated.ServerPropertiesLoader;
import net.minecraft.util.ApiServices;
import net.minecraft.world.level.storage.LevelStorage;
import net.minecraft.world.level.storage.LevelSummary;
import net.fabricmc.fabric.impl.gametest.FabricGameTestHelper;
@ -48,7 +48,7 @@ public class MainMixin {
// Inject after resourcePackManager is stored
@Inject(method = "main", cancellable = true, locals = LocalCapture.CAPTURE_FAILHARD, at = @At(value = "INVOKE", shift = At.Shift.BY, by = 2, target = "Lnet/minecraft/resource/VanillaDataPackProvider;createManager(Lnet/minecraft/world/level/storage/LevelStorage$Session;)Lnet/minecraft/resource/ResourcePackManager;"))
private static void main(String[] args, CallbackInfo info, OptionParser optionParser, OptionSpec optionSpec, OptionSpec optionSpec2, OptionSpec optionSpec3, OptionSpec optionSpec4, OptionSpec optionSpec5, OptionSpec optionSpec6, OptionSpec optionSpec7, OptionSpec optionSpec8, OptionSpec optionSpec9, OptionSpec optionSpec10, OptionSpec optionSpec11, OptionSpec optionSpec12, OptionSpec optionSpec13, OptionSpec optionSpec14, OptionSpec optionSpec15, OptionSet optionSet, Path path2, ServerPropertiesLoader serverPropertiesLoader, Path path3, EulaReader eulaReader, File file, ApiServices apiServices, String string, LevelStorage levelStorage, LevelStorage.Session session, LevelSummary levelSummary, boolean bl, ResourcePackManager resourcePackManager) {
private static void main(String[] args, CallbackInfo info, OptionParser optionParser, OptionSpec optionSpec, OptionSpec optionSpec2, OptionSpec optionSpec3, OptionSpec optionSpec4, OptionSpec optionSpec5, OptionSpec optionSpec6, OptionSpec optionSpec7, OptionSpec optionSpec8, OptionSpec optionSpec9, OptionSpec optionSpec10, OptionSpec optionSpec11, OptionSpec optionSpec12, OptionSpec optionSpec13, OptionSpec optionSpec14, OptionSpec optionSpec15, OptionSet optionSet, Path path2, ServerPropertiesLoader serverPropertiesLoader, Path path3, EulaReader eulaReader, File file, ApiServices apiServices, String string, LevelStorage levelStorage, LevelStorage.Session session, Dynamic dynamic, Dynamic dynamic2, boolean bl, ResourcePackManager resourcePackManager) {
if (FabricGameTestHelper.ENABLED) {
FabricGameTestHelper.runHeadlessServer(session, resourcePackManager);
info.cancel(); // Do not progress in starting the normal dedicated server

View file

@ -38,6 +38,7 @@ import net.minecraft.nbt.NbtElement;
import net.minecraft.nbt.NbtIo;
import net.minecraft.nbt.NbtList;
import net.minecraft.nbt.NbtString;
import net.minecraft.nbt.NbtTagSizeTracker;
import net.minecraft.resource.ResourcePack;
import net.minecraft.resource.ResourcePackProfile;
@ -74,7 +75,7 @@ public class GameOptionsMixin {
if (trackerFile.exists()) {
try {
NbtCompound data = NbtIo.readCompressed(trackerFile);
NbtCompound data = NbtIo.readCompressed(trackerFile, NbtTagSizeTracker.ofUnlimitedBytes());
NbtList values = data.getList("values", NbtElement.STRING_TYPE);
for (int i = 0; i < values.size(); i++) {

View file

@ -39,7 +39,7 @@ public class BoxBlockEntity extends LootableContainerBlockEntity implements Exte
}
@Override
protected DefaultedList<ItemStack> getInvStackList() {
protected DefaultedList<ItemStack> method_11282() {
return items;
}

View file

@ -267,7 +267,6 @@ transitive-accessible field net/minecraft/client/render/RenderPhase CUTOUT_MIPPE
transitive-accessible field net/minecraft/client/render/RenderPhase CUTOUT_PROGRAM Lnet/minecraft/client/render/RenderPhase$ShaderProgram;
transitive-accessible field net/minecraft/client/render/RenderPhase TRANSLUCENT_PROGRAM Lnet/minecraft/client/render/RenderPhase$ShaderProgram;
transitive-accessible field net/minecraft/client/render/RenderPhase TRANSLUCENT_MOVING_BLOCK_PROGRAM Lnet/minecraft/client/render/RenderPhase$ShaderProgram;
transitive-accessible field net/minecraft/client/render/RenderPhase TRANSLUCENT_NO_CRUMBLING_PROGRAM Lnet/minecraft/client/render/RenderPhase$ShaderProgram;
transitive-accessible field net/minecraft/client/render/RenderPhase ARMOR_CUTOUT_NO_CULL_PROGRAM Lnet/minecraft/client/render/RenderPhase$ShaderProgram;
transitive-accessible field net/minecraft/client/render/RenderPhase ENTITY_SOLID_PROGRAM Lnet/minecraft/client/render/RenderPhase$ShaderProgram;
transitive-accessible field net/minecraft/client/render/RenderPhase ENTITY_CUTOUT_PROGRAM Lnet/minecraft/client/render/RenderPhase$ShaderProgram;

View file

@ -2,8 +2,8 @@ org.gradle.jvmargs=-Xmx2560M
org.gradle.parallel=true
fabric.loom.multiProjectOptimisation=true
version=0.90.1
minecraft_version=23w41a
version=0.90.2
minecraft_version=23w42a
yarn_version=+build.1
loader_version=0.14.23
installer_version=0.11.1
@ -22,27 +22,27 @@ fabric-command-api-v1-version=1.2.37
fabric-command-api-v2-version=2.2.16
fabric-commands-v0-version=0.2.54
fabric-containers-v0-version=0.1.73
fabric-content-registries-v0-version=5.0.5
fabric-content-registries-v0-version=5.0.6
fabric-crash-report-info-v1-version=0.2.20
fabric-data-generation-api-v1-version=13.1.4
fabric-data-generation-api-v1-version=13.1.5
fabric-dimensions-v1-version=2.1.56
fabric-entity-events-v1-version=1.5.25
fabric-events-interaction-v0-version=0.6.12
fabric-events-lifecycle-v0-version=0.2.69
fabric-game-rule-api-v1-version=1.0.40
fabric-gametest-api-v1-version=1.2.15
fabric-gametest-api-v1-version=1.2.16
fabric-item-api-v1-version=2.1.32
fabric-item-group-api-v1-version=4.0.14
fabric-item-group-api-v1-version=4.0.15
fabric-key-binding-api-v1-version=1.0.38
fabric-keybindings-v0-version=0.2.36
fabric-lifecycle-events-v1-version=2.2.27
fabric-loot-api-v2-version=2.1.0
fabric-loot-api-v2-version=2.1.1
fabric-message-api-v1-version=6.0.2
fabric-mining-level-api-v1-version=2.1.55
fabric-mining-level-api-v1-version=2.1.56
fabric-model-loading-api-v1-version=1.0.5
fabric-models-v0-version=0.4.4
fabric-networking-api-v1-version=3.0.9
fabric-object-builder-api-v1-version=13.0.1
fabric-object-builder-api-v1-version=13.0.2
fabric-particles-v1-version=1.1.4
fabric-recipe-api-v1-version=2.0.6
fabric-registry-sync-v0-version=4.0.5
@ -54,11 +54,11 @@ fabric-rendering-fluids-v1-version=3.0.30
fabric-rendering-v0-version=1.1.51
fabric-rendering-v1-version=3.0.10
fabric-resource-conditions-api-v1-version=2.3.10
fabric-resource-loader-v0-version=0.11.11
fabric-resource-loader-v0-version=0.11.12
fabric-screen-api-v1-version=2.0.11
fabric-screen-handler-api-v1-version=1.3.41
fabric-screen-handler-api-v1-version=1.3.42
fabric-sound-api-v1-version=1.0.14
fabric-transfer-api-v1-version=4.0.1
fabric-transitive-access-wideners-v1-version=5.0.5
fabric-transitive-access-wideners-v1-version=5.0.6
fabric-convention-tags-v1-version=1.5.7
fabric-client-tags-api-v1-version=1.1.4