Skip to content

Commit

Permalink
23w31a
Browse files Browse the repository at this point in the history
  • Loading branch information
modmuss50 authored Aug 7, 2023
1 parent f4b7e42 commit 86b1264
Show file tree
Hide file tree
Showing 104 changed files with 2,490 additions and 1,189 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
import java.util.function.Consumer;

import io.netty.buffer.Unpooled;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import net.minecraft.network.packet.s2c.play.CustomPayloadS2CPacket;
import net.minecraft.screen.ScreenHandler;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.network.PacketByteBuf;
import net.minecraft.screen.ScreenHandler;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.util.Identifier;
import net.minecraft.network.PacketByteBuf;

import net.fabricmc.fabric.api.container.ContainerFactory;
import net.fabricmc.fabric.api.container.ContainerProviderRegistry;
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking;
import net.fabricmc.fabric.mixin.container.ServerPlayerEntityAccessor;

public class ContainerProviderImpl implements ContainerProviderRegistry {
Expand Down Expand Up @@ -87,7 +87,7 @@ public void openContainer(Identifier identifier, ServerPlayerEntity player, Cons
buf.writeByte(syncId);

writer.accept(buf);
player.networkHandler.sendPacket(new CustomPayloadS2CPacket(OPEN_CONTAINER, buf));
player.networkHandler.sendPacket(ServerPlayNetworking.createS2CPacket(OPEN_CONTAINER, buf));

PacketByteBuf clonedBuf = new PacketByteBuf(buf.duplicate());
clonedBuf.readIdentifier();
Expand Down
6 changes: 0 additions & 6 deletions deprecated/fabric-networking-v0/build.gradle

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 86b1264

Please sign in to comment.