This commit is contained in:
paulevsGitch 2020-10-03 23:28:04 +03:00
parent a968b9bb23
commit 8beabd0f96
18 changed files with 176 additions and 63 deletions

View file

@ -0,0 +1,17 @@
package ru.betterend.mixin.common;
import org.spongepowered.asm.mixin.Mixin;
import net.minecraft.world.gen.chunk.ChunkGenerator;
@Mixin(ChunkGenerator.class)
public class ChunkGeneratorMixin {
/*@Inject(method = "generateFeatures", at = @At("RETURN"))
private void fixerPass(ChunkRegion region, StructureAccessor accessor, CallbackInfo info) {
int chunkX = region.getCenterChunkX();
int chunkZ = region.getCenterChunkZ();
BlockPos start = new BlockPos(chunkX << 4, 16, chunkZ << 4);
BlockPos end = start.add(15, 64, 15);
BlocksHelper.fixBlocks(region, start, end);
}*/
}

View file

@ -1,13 +0,0 @@
package ru.betterend.mixin.common;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
import net.minecraft.tag.Tag;
@Deprecated
@Mixin(targets = "net.minecraft.tag.RequiredTagList$TagWrapper")
public interface TagAccessor<T> {
@Accessor
Tag<T> getDelegate();
}