mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-05 00:31:57 +00:00
init, thx MrExtremez
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package redone.net.packets.impl;
|
||||
|
||||
import redone.game.items.impl.HandleEmpty;
|
||||
import redone.game.players.Client;
|
||||
import redone.net.packets.PacketType;
|
||||
|
||||
/**
|
||||
* Item Click 2 Or Alternative Item Option 1
|
||||
*
|
||||
* @author Ryan / Lmctruck30 Proper Streams
|
||||
*/
|
||||
|
||||
public class ItemClick2 implements PacketType {
|
||||
|
||||
@Override
|
||||
public void processPacket(Client c, int packetType, int packetSize) {
|
||||
int itemId = c.getInStream().readSignedWordA();
|
||||
|
||||
if (!c.getItemAssistant().playerHasItem(itemId, 1)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (HandleEmpty.canEmpty(c, itemId)) {
|
||||
HandleEmpty.handleEmptyItem(c, itemId, HandleEmpty.filledToEmpty(c, itemId));
|
||||
return;
|
||||
}
|
||||
|
||||
switch (itemId) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user