mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Update Loom & remove class that shouldn't be here
This commit is contained in:
1 parent
b2ebee3cb8
commit
d6d3214681
3 files changed
+2
-33
No files matched your search
@@ -1,31 +0,0 @@
|
||||
package com.moulberry.flashback.mixin.playback;
|
||||
|
||||
import com.llamalad7.mixinextras.injector.wrapoperation.Operation;
|
||||
import com.llamalad7.mixinextras.injector.wrapoperation.WrapOperation;
|
||||
import com.moulberry.flashback.playback.ReplayServer;
|
||||
import net.minecraft.core.Registry;
|
||||
import net.minecraft.core.RegistryAccess;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.server.packs.resources.ResourceManager;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mixin(MinecraftServer.class)
|
||||
public class MixinMinecraftServer {
|
||||
|
||||
/*
|
||||
* Force the server to use the pending tags we gathered instead of trying
|
||||
* to load them from the resource pack repository where it doesn't exist
|
||||
*/
|
||||
|
||||
@WrapOperation(method = "method_29437", at = @At(value = "INVOKE", target = "Lnet/minecraft/tags/TagLoader;loadTagsForExistingRegistries(Lnet/minecraft/server/packs/resources/ResourceManager;Lnet/minecraft/core/RegistryAccess;)Ljava/util/List;"))
|
||||
public List<Registry.PendingTags<?>> loadTagsForExistingRegistries(ResourceManager resourceManager, RegistryAccess registryAccess, Operation<List<Registry.PendingTags<?>>> original) {
|
||||
if ((Object) this instanceof ReplayServer replayServer && replayServer.overridePendingTags != null) {
|
||||
return replayServer.overridePendingTags;
|
||||
}
|
||||
return original.call(resourceManager, registryAccess);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user