Yaks now have their unique usewith interaction
This commit is contained in:
@@ -72,6 +72,9 @@ public class ItemActionPacket implements IncomingPacket {
|
||||
if(InteractionListeners.run(item,npc,2,player)){
|
||||
return;
|
||||
}
|
||||
if(player.getZoneMonitor().useWith(used,npc)){
|
||||
return;
|
||||
}
|
||||
event = new NodeUsageEvent(player, interfaceId, item, npc);
|
||||
try {
|
||||
UseWithHandler.run(event);
|
||||
@@ -97,6 +100,9 @@ public class ItemActionPacket implements IncomingPacket {
|
||||
if(PluginInteractionManager.handle(player,event)){
|
||||
return;
|
||||
}
|
||||
if(player.getZoneMonitor().useWith(used,player)){
|
||||
return;
|
||||
}
|
||||
event = new NodeUsageEvent(player, interfaceId, item, target);
|
||||
try {
|
||||
UseWithHandler.run(event);
|
||||
@@ -131,6 +137,9 @@ public class ItemActionPacket implements IncomingPacket {
|
||||
if(InteractionListeners.run(used,with,0,player)){
|
||||
return;
|
||||
}
|
||||
if(player.getZoneMonitor().useWith(used,with)){
|
||||
return;
|
||||
}
|
||||
if (usedItemId < usedWithItemId) {
|
||||
item = used;
|
||||
used = with;
|
||||
@@ -182,6 +191,9 @@ public class ItemActionPacket implements IncomingPacket {
|
||||
if(InteractionListeners.run(used,object,1,player)){
|
||||
return;
|
||||
}
|
||||
if(player.getZoneMonitor().useWith(used,object)){
|
||||
return;
|
||||
}
|
||||
event = new NodeUsageEvent(player, 0, used, object);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user