Skip to content

Commit

Permalink
lovely
Browse files Browse the repository at this point in the history
  • Loading branch information
Spigey committed May 10, 2024
1 parent 4055d21 commit 986d0a2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ private void onTick(TickEvent.Post event){
// if(!Objects.equals(mc.currentScreen.getTitle().toString(), "literal{Where to?}")) return;
Utils.rightClick();
assert mc.currentScreen != null;
if(!(mc.currentScreen instanceof GenericContainerScreen)) return;
DefaultedList<Slot> slots = ((GenericContainerScreen) mc.currentScreen).getScreenHandler().slots;
ClickSlotC2SPacket packet = new ClickSlotC2SPacket(1, 55, 49, 0, SlotActionType.PICKUP, slots.get(49).getStack(), Int2ObjectMaps.singleton(49, ItemStack.EMPTY));
mc.getNetworkHandler().sendPacket(packet);
Expand Down

0 comments on commit 986d0a2

Please sign in to comment.