hackfixed biomes once again
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user