mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-21 03:10:54 -04:00
21w40a
This commit is contained in:
parent
c683a6555f
commit
d1937ce458
7 changed files with 11 additions and 10 deletions
build.gradle
fabric-biome-api-v1
fabric-dimensions-v1
fabric-lifecycle-events-v1
build.gradle
src/main/java/net/fabricmc/fabric/mixin/event/lifecycle/client
|
@ -19,9 +19,9 @@ plugins {
|
|||
def ENV = System.getenv()
|
||||
|
||||
class Globals {
|
||||
static def baseVersion = "0.40.6"
|
||||
static def mcVersion = "21w39a"
|
||||
static def yarnVersion = "+build.2"
|
||||
static def baseVersion = "0.40.7"
|
||||
static def mcVersion = "21w40a"
|
||||
static def yarnVersion = "+build.1"
|
||||
static def loaderVersion = "0.11.7"
|
||||
static def preRelease = true
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
archivesBaseName = "fabric-biome-api-v1"
|
||||
version = getSubprojectVersion(project, "4.0.2")
|
||||
version = getSubprojectVersion(project, "4.0.3")
|
||||
|
||||
loom {
|
||||
accessWidenerPath = file("src/main/resources/fabric-biome-api-v1.accesswidener")
|
||||
|
|
|
@ -31,6 +31,7 @@ import net.minecraft.world.biome.Biome;
|
|||
import net.minecraft.world.biome.source.TheEndBiomeSource;
|
||||
import net.minecraft.world.biome.source.util.MultiNoiseUtil;
|
||||
import net.minecraft.world.gen.random.ChunkRandom;
|
||||
import net.minecraft.world.gen.random.AtomicSimpleRandom;
|
||||
|
||||
import net.fabricmc.fabric.impl.biome.TheEndBiomeData;
|
||||
|
||||
|
@ -43,7 +44,7 @@ public class MixinTheEndBiomeSource {
|
|||
@Final
|
||||
private long seed;
|
||||
@Unique
|
||||
private PerlinNoiseSampler sampler = new PerlinNoiseSampler(new ChunkRandom(seed));
|
||||
private PerlinNoiseSampler sampler = new PerlinNoiseSampler(new ChunkRandom(new AtomicSimpleRandom(seed)));
|
||||
|
||||
@Inject(method = "getBiome", at = @At("RETURN"), cancellable = true)
|
||||
private void getWeightedEndBiome(int biomeX, int biomeY, int biomeZ, MultiNoiseUtil.MultiNoiseSampler multiNoiseSampler, CallbackInfoReturnable<Biome> cir) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
archivesBaseName = "fabric-dimensions-v1"
|
||||
version = getSubprojectVersion(project, "2.1.0")
|
||||
version = getSubprojectVersion(project, "2.1.1")
|
||||
|
||||
dependencies {
|
||||
testmodImplementation project(path: ':fabric-command-api-v1', configuration: 'dev')
|
||||
|
|
|
@ -66,7 +66,7 @@ public class VoidChunkGenerator extends ChunkGenerator {
|
|||
}
|
||||
|
||||
@Override
|
||||
public MultiNoiseUtil.MultiNoiseSampler method_38276() {
|
||||
public MultiNoiseUtil.MultiNoiseSampler getMultiNoiseSampler() {
|
||||
// Mirror what Vanilla does in the debug chunk generator
|
||||
return (x, y, z) -> MultiNoiseUtil.createNoiseValuePoint(0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0F);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
archivesBaseName = "fabric-lifecycle-events-v1"
|
||||
version = getSubprojectVersion(project, "1.4.5")
|
||||
version = getSubprojectVersion(project, "1.4.6")
|
||||
|
||||
moduleDependencies(project, [
|
||||
'fabric-api-base'
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
|
||||
|
||||
import net.minecraft.class_6603;
|
||||
import net.minecraft.network.packet.s2c.play.ChunkData;
|
||||
import net.minecraft.client.world.ClientChunkManager;
|
||||
import net.minecraft.client.world.ClientWorld;
|
||||
import net.minecraft.nbt.NbtCompound;
|
||||
|
@ -46,7 +46,7 @@ public abstract class ClientChunkManagerMixin {
|
|||
private ClientWorld world;
|
||||
|
||||
@Inject(method = "loadChunkFromPacket", at = @At("TAIL"))
|
||||
private void onChunkLoad(int x, int z, PacketByteBuf packetByteBuf, NbtCompound nbtCompound, Consumer<class_6603.class_6605> consumer, CallbackInfoReturnable<WorldChunk> info) {
|
||||
private void onChunkLoad(int x, int z, PacketByteBuf packetByteBuf, NbtCompound nbtCompound, Consumer<ChunkData.BlockEntityVisitor> consumer, CallbackInfoReturnable<WorldChunk> info) {
|
||||
ClientChunkEvents.CHUNK_LOAD.invoker().onChunkLoad(this.world, info.getReturnValue());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue