mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-03 10:39:57 -04:00
Compile Fixes (#1729)
This commit is contained in:
parent
5553aff888
commit
a2c681827d
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
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue