fix: Fixes possible NPE in bounce logic (#1232)
This commit is contained in:
parent
ab4aaa0fa8
commit
c75bde55da
1 changed files with 1 additions and 1 deletions
|
|
@ -2040,7 +2040,7 @@ public class Item : IHued, IComparable<Item>, ISpawnable, IObjectPropertyListEnt
|
|||
|
||||
if (ip.IsAccessibleTo(from)
|
||||
&& rpm?.CheckNonlocalDrop(from, this, ip) != false
|
||||
&& (!ip.Movable || rpm == from || ip.Map == bounce.Map && root.Location == bounce.WorldLoc)
|
||||
&& (!ip.Movable || rpm == from || ip.Map == bounce.Map && root?.Location == bounce.WorldLoc)
|
||||
)
|
||||
{
|
||||
Location = bounce.Location;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue