Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ForceDrop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void Execute(IRocketPlayer caller, params string[] command)
{
var count = player.Inventory.getItemCount(page);

for (byte index = 0; index < count; index++)
for (byte index = count; index --> 0;)
{
foreach (var number in Configuration.Instance.WhiteListedFromDrop)
{
Expand All @@ -83,7 +83,7 @@ public void Execute(IRocketPlayer caller, params string[] command)
{
var count = player.Inventory.getItemCount(page);

for (byte index = 0; index < count; index++)
for (byte index = count; index --> 0;)
{
if (player.Inventory.getItem(page, index).item.id == ushort.Parse(command[1].ToString()))
{
Expand All @@ -105,7 +105,7 @@ public void Execute(IRocketPlayer caller, params string[] command)
{
var count = player.Inventory.getItemCount(page);

for (byte index = 0; index < count; index++)
for (byte index = count; index --> 0;)
{
foreach (var number in Configuration.Instance.WhiteListedFromDrop)
{
Expand All @@ -130,7 +130,7 @@ public void Execute(IRocketPlayer caller, params string[] command)
{
var count = player.Inventory.getItemCount(page);

for (byte index = 0; index < count; index++)
for (byte index = count; index --> 0;)
{
if (player.Inventory.getItem(page, index).item.id == ushort.Parse(command[1].ToString()))
{
Expand Down