hackfixed biomes once again

This commit is contained in:
Unknown
2019-12-13 19:36:30 -05:00
parent c5608fd2c6
commit d58f4e8bae
2 changed files with 9 additions and 1 deletions
@@ -31,7 +31,7 @@ public class BiomeFinder extends Finder {
Biome biome = this.world.getBiome(blockPos);
//TODO: Fix this multi-threading issue.
if(biome == Biomes.PLAINS) {
if(biome == Biomes.THE_VOID) {
continue;
}
@@ -3,10 +3,13 @@ package kaptainwutax.seedcracker.mixin;
import kaptainwutax.seedcracker.SeedCracker;
import kaptainwutax.seedcracker.finder.FinderQueue;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.biome.Biomes;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(ClientWorld.class)
public abstract class ClientWorldMixin {
@@ -17,4 +20,9 @@ public abstract class ClientWorldMixin {
FinderQueue.get().clear();
}
@Inject(method = "getGeneratorStoredBiome", at = @At("HEAD"), cancellable = true)
private void getGeneratorStoredBiome(int x, int y, int z, CallbackInfoReturnable<Biome> ci) {
ci.setReturnValue(Biomes.THE_VOID);
}
}