From 648b96601dfc95139f3356a64ad9f5d09a923639 Mon Sep 17 00:00:00 2001 From: WayofTime Date: Wed, 11 Nov 2020 11:28:51 -0500 Subject: [PATCH] Fixed ARC Packet Made it so that the Packet's `updateTanks` method was not visible on the Server side. --- src/main/java/wayoftime/bloodmagic/network/ARCTanksPacket.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/wayoftime/bloodmagic/network/ARCTanksPacket.java b/src/main/java/wayoftime/bloodmagic/network/ARCTanksPacket.java index 82c14c82..60be5d5c 100644 --- a/src/main/java/wayoftime/bloodmagic/network/ARCTanksPacket.java +++ b/src/main/java/wayoftime/bloodmagic/network/ARCTanksPacket.java @@ -8,6 +8,8 @@ import net.minecraft.network.PacketBuffer; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; +import net.minecraftforge.api.distmarker.Dist; +import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraftforge.fml.network.NetworkEvent.Context; import wayoftime.bloodmagic.tile.TileAlchemicalReactionChamber; @@ -56,6 +58,7 @@ public class ARCTanksPacket context.get().setPacketHandled(true); } + @OnlyIn(Dist.CLIENT) public static void updateTanks(BlockPos pos, CompoundNBT inputNBT, CompoundNBT outputNBT) { World world = Minecraft.getInstance().world;