Compile Fixes ()

This commit is contained in:
shartte 2021-09-17 21:06:14 +02:00 committed by GitHub
parent 5553aff888
commit a2c681827d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions
fabric-dimensions-v1/src/testmod/java/net/fabricmc/fabric/test/dimension
fabric-events-interaction-v0/src/main/java/net/fabricmc/fabric/mixin/event/interaction

View file

@ -66,8 +66,9 @@ public class VoidChunkGenerator extends ChunkGenerator {
}
@Override
public MultiNoiseUtil.MultiNoiseSampler method_38277() {
return null;
public MultiNoiseUtil.MultiNoiseSampler method_38276() {
// 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);
}
@Override

View file

@ -27,7 +27,8 @@ import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.network.packet.s2c.play.BlockEntityUpdateS2CPacket;
import net.minecraft.network.Packet;
import net.minecraft.network.listener.ClientPlayPacketListener;
import net.minecraft.network.packet.s2c.play.BlockUpdateS2CPacket;
import net.minecraft.item.ItemStack;
import net.minecraft.server.network.ServerPlayerEntity;
@ -67,7 +68,7 @@ public class MixinServerPlayerInteractionManager {
BlockEntity blockEntity = world.getBlockEntity(pos);
if (blockEntity != null) {
BlockEntityUpdateS2CPacket updatePacket = BlockEntityUpdateS2CPacket.method_38586(blockEntity);
Packet<ClientPlayPacketListener> updatePacket = blockEntity.method_38235();
if (updatePacket != null) {
this.player.networkHandler.sendPacket(updatePacket);