Skip to content

Commit

Permalink
Update handler
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyhedral committed Nov 23, 2024
1 parent d2ed8f7 commit 5193feb
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import com.sweetrpg.crafttracker.common.network.IPacket;
import com.sweetrpg.crafttracker.common.network.packet.data.QueueCommandData;
import net.minecraft.network.FriendlyByteBuf;
import net.minecraft.resources.ResourceLocation;
import net.minecraftforge.fml.LogicalSide;
import net.minecraftforge.network.NetworkEvent.Context;

Expand All @@ -31,11 +30,7 @@ public final void handle(QueueCommandData data, Supplier<Context> ctx) {
ctx.get().enqueueWork(() -> {
LogicalSide side = ctx.get().getDirection().getReceptionSide();
if(side.isClient()) {

}
else if(side.isServer()) {
// var player = ctx.get().getSender();
// CraftingQueueManager.get(player, player.level).addProduct(player.level, data.itemId, data.quantity);
CraftingQueueManager.INSTANCE.computeAll();
}
});

Expand Down

0 comments on commit 5193feb

Please sign in to comment.