mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-18 06:40:55 +00:00
remove broken biome registration mixin
This commit is contained in:
-28
@@ -1,28 +0,0 @@
|
|||||||
package com.dfsek.terra.fabric.mixin.lifecycle;
|
|
||||||
|
|
||||||
import net.minecraft.server.MinecraftServer;
|
|
||||||
import net.minecraft.util.registry.DynamicRegistryManager.Immutable;
|
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
|
||||||
import org.spongepowered.asm.mixin.Shadow;
|
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.concurrent.CompletableFuture;
|
|
||||||
|
|
||||||
import com.dfsek.terra.fabric.FabricEntryPoint;
|
|
||||||
import com.dfsek.terra.fabric.event.BiomeRegistrationEvent;
|
|
||||||
|
|
||||||
|
|
||||||
@Mixin(MinecraftServer.class)
|
|
||||||
public abstract class MinecraftServer_BiomeRegistrationMixin {
|
|
||||||
@Shadow
|
|
||||||
public abstract Immutable getRegistryManager();
|
|
||||||
|
|
||||||
@Inject(method = "reloadResources",
|
|
||||||
at = @At("HEAD"))
|
|
||||||
private void inject(Collection<String> dataPacks, CallbackInfoReturnable<CompletableFuture<Void>> cir) {
|
|
||||||
FabricEntryPoint.getPlatform().getEventManager().callEvent(new BiomeRegistrationEvent(getRegistryManager())); // register biomes
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,51 +1,50 @@
|
|||||||
{
|
{
|
||||||
"required": true,
|
"required": true,
|
||||||
"minVersion": "0.8",
|
"minVersion": "0.8",
|
||||||
"package": "com.dfsek.terra.fabric.mixin",
|
"package": "com.dfsek.terra.fabric.mixin",
|
||||||
"compatibilityLevel": "JAVA_16",
|
"compatibilityLevel": "JAVA_16",
|
||||||
"mixins": [
|
"mixins": [
|
||||||
"access.BiomeEffectsAccessor",
|
"access.BiomeEffectsAccessor",
|
||||||
"access.MobSpawnerLogicAccessor",
|
"access.MobSpawnerLogicAccessor",
|
||||||
"access.StateAccessor",
|
"access.StateAccessor",
|
||||||
"access.StructureAccessorAccessor",
|
"access.StructureAccessorAccessor",
|
||||||
"implementations.BiomeMixin",
|
"implementations.BiomeMixin",
|
||||||
"implementations.HandleImplementationMixin",
|
"implementations.HandleImplementationMixin",
|
||||||
"implementations.block.BlockMixin",
|
"implementations.block.BlockMixin",
|
||||||
"implementations.block.entity.BlockEntityMixin",
|
"implementations.block.entity.BlockEntityMixin",
|
||||||
"implementations.block.entity.LootableContainerBlockEntityMixin",
|
"implementations.block.entity.LootableContainerBlockEntityMixin",
|
||||||
"implementations.block.entity.MobSpawnerBlockEntityMixin",
|
"implementations.block.entity.MobSpawnerBlockEntityMixin",
|
||||||
"implementations.block.entity.SignBlockEntityMixin",
|
"implementations.block.entity.SignBlockEntityMixin",
|
||||||
"implementations.block.state.BlockStateMixin",
|
"implementations.block.state.BlockStateMixin",
|
||||||
"implementations.block.state.PropertyMixin",
|
"implementations.block.state.PropertyMixin",
|
||||||
"implementations.chunk.ChunkRegionMixin",
|
"implementations.chunk.ChunkRegionMixin",
|
||||||
"implementations.chunk.WorldChunkMixin",
|
"implementations.chunk.WorldChunkMixin",
|
||||||
"implementations.chunk.data.ProtoChunkMixin",
|
"implementations.chunk.data.ProtoChunkMixin",
|
||||||
"implementations.entity.EntityMixin",
|
"implementations.entity.EntityMixin",
|
||||||
"implementations.entity.EntityTypeMixin",
|
"implementations.entity.EntityTypeMixin",
|
||||||
"implementations.entity.PlayerEntityMixin",
|
"implementations.entity.PlayerEntityMixin",
|
||||||
"implementations.entity.ServerCommandSourceMixin",
|
"implementations.entity.ServerCommandSourceMixin",
|
||||||
"implementations.inventory.LockableContainerBlockEntityMixin",
|
"implementations.inventory.LockableContainerBlockEntityMixin",
|
||||||
"implementations.inventory.item.ItemMixin",
|
"implementations.inventory.item.ItemMixin",
|
||||||
"implementations.inventory.item.ItemStackMixin",
|
"implementations.inventory.item.ItemStackMixin",
|
||||||
"implementations.inventory.meta.EnchantmentMixin",
|
"implementations.inventory.meta.EnchantmentMixin",
|
||||||
"implementations.inventory.meta.ItemStackDamageableMixin",
|
"implementations.inventory.meta.ItemStackDamageableMixin",
|
||||||
"implementations.inventory.meta.ItemStackMetaMixin",
|
"implementations.inventory.meta.ItemStackMetaMixin",
|
||||||
"implementations.world.ChunkRegionMixin",
|
"implementations.world.ChunkRegionMixin",
|
||||||
"implementations.world.ServerWorldMixin",
|
"implementations.world.ServerWorldMixin",
|
||||||
"lifecycle.ChunkGenerator_ChunkGeneratorRegistrationMixin",
|
"lifecycle.ChunkGenerator_ChunkGeneratorRegistrationMixin",
|
||||||
"lifecycle.MinecraftServer_BiomeRegistrationMixin",
|
"lifecycle.MinecraftServerMixin"
|
||||||
"lifecycle.MinecraftServerMixin"
|
],
|
||||||
],
|
"client": [
|
||||||
"client": [
|
"access.GeneratorTypeAccessor",
|
||||||
"access.GeneratorTypeAccessor",
|
"lifecycle.client.MinecraftClientMixin"
|
||||||
"lifecycle.client.MinecraftClientMixin"
|
],
|
||||||
],
|
"server": [
|
||||||
"server": [
|
"lifecycle.server.GeneratorOptionsMixin",
|
||||||
"lifecycle.server.GeneratorOptionsMixin",
|
"lifecycle.server.ServerMainMixin"
|
||||||
"lifecycle.server.ServerMainMixin"
|
],
|
||||||
],
|
"injectors": {
|
||||||
"injectors": {
|
"defaultRequire": 1
|
||||||
"defaultRequire": 1
|
},
|
||||||
},
|
"refmap": "terra-refmap.json"
|
||||||
"refmap": "terra-refmap.json"
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user