Updated check on dropItem method.
This commit is contained in:
parent
18fe85916c
commit
75ba003efb
@ -602,6 +602,11 @@ public abstract class Inventory extends ItemContainer
|
||||
*/
|
||||
public Item dropItem(String process, Item item, Player actor, WorldObject reference)
|
||||
{
|
||||
if (item == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
synchronized (item)
|
||||
{
|
||||
if (!_items.contains(item))
|
||||
@ -617,6 +622,7 @@ public abstract class Inventory extends ItemContainer
|
||||
item.updateDatabase();
|
||||
refreshWeight();
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
|
@ -602,6 +602,11 @@ public abstract class Inventory extends ItemContainer
|
||||
*/
|
||||
public Item dropItem(String process, Item item, Player actor, WorldObject reference)
|
||||
{
|
||||
if (item == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
synchronized (item)
|
||||
{
|
||||
if (!_items.contains(item))
|
||||
@ -617,6 +622,7 @@ public abstract class Inventory extends ItemContainer
|
||||
item.updateDatabase();
|
||||
refreshWeight();
|
||||
}
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user