Prohibit collection consuming equipped items.
Contributed by Horus.
This commit is contained in:
@@ -78,7 +78,7 @@ public class RequestCollectionRegister implements IClientIncomingPacket
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((count == 0) || (item.getCount() < count))
|
if ((count == 0) || (item.getCount() < count) || item.isEquipped())
|
||||||
{
|
{
|
||||||
player.sendMessage("Incorrect item count.");
|
player.sendMessage("Incorrect item count.");
|
||||||
return;
|
return;
|
||||||
|
@@ -78,7 +78,7 @@ public class RequestCollectionRegister implements IClientIncomingPacket
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((count == 0) || (item.getCount() < count))
|
if ((count == 0) || (item.getCount() < count) || item.isEquipped())
|
||||||
{
|
{
|
||||||
player.sendMessage("Incorrect item count.");
|
player.sendMessage("Incorrect item count.");
|
||||||
return;
|
return;
|
||||||
|
@@ -78,7 +78,7 @@ public class RequestCollectionRegister implements IClientIncomingPacket
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((count == 0) || (item.getCount() < count))
|
if ((count == 0) || (item.getCount() < count) || item.isEquipped())
|
||||||
{
|
{
|
||||||
player.sendMessage("Incorrect item count.");
|
player.sendMessage("Incorrect item count.");
|
||||||
return;
|
return;
|
||||||
|
@@ -78,7 +78,7 @@ public class RequestCollectionRegister implements IClientIncomingPacket
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((count == 0) || (item.getCount() < count))
|
if ((count == 0) || (item.getCount() < count) || item.isEquipped())
|
||||||
{
|
{
|
||||||
player.sendMessage("Incorrect item count.");
|
player.sendMessage("Incorrect item count.");
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user