public bool GetPlayerLockPermission(BasePlayer player) { BaseLock slot = base.GetSlot(BaseEntity.Slot.Lock) as BaseLock; if (slot == null) { return(true); } return(slot.GetPlayerLockPermission(player)); }
public bool GetPlayerLockPermission(BasePlayer player) { BaseLock slot = this.GetSlot(BaseEntity.Slot.Lock) as BaseLock; if (Object.op_Equality((Object)slot, (Object)null)) { return(true); } return(slot.GetPlayerLockPermission(player)); }